Method AttackWhileInRange
AttackWhileInRange(IAttack, RideID, RideID, RideID)
The concrete MonoBehaviour implementation of an IAgent who will keep attacking an Enemy while that enemy is within range of the IAgents weapon
Declaration
public IAttackResult AttackWhileInRange(IAttack attack, RideID agent, RideID weapon, RideID enemy)
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 |
RideID | enemy | the IAttack that will be attacked |
Returns
Type | Description |
---|---|
IAttackResult | AttackResult which encapsulate the data from the Attack |