Method AttackArea
AttackArea(IAttack, RideID, RideID, Single)
The concrete MonoBehaviour implementation of an IAgent will attack an area, randomly picking points inside a predefined location to attack
Declaration
public IAttackResult AttackArea(IAttack attack, RideID agent, RideID weapon, float radius)
Parameters
Type | Name | Description |
---|---|---|
IAttack | attack | the IAttack data for the attack |
RideID | agent | the IAgent which will perform the attack |
RideID | weapon | the IWeapon the agent will use to attack |
System.Single | radius | the area that the agent will attack within |
Returns
Type | Description |
---|---|
IAttackResult | AttackResult which encapsulate the data from the Attack |