Method AttackPosition
AttackPosition(IAttack, RideID, RideID)
The concrete MonoBehaviour implementation of an IAgent attacking a specific position on the terrain whether or not an enemy is there or not
Declaration
public IAttackResult AttackPosition(IAttack attack, RideID agent, RideID weapon)
Parameters
Type | Name | Description |
---|---|---|
IAttack | attack | The IAttack data for the attack such as the position to attack |
RideID | agent | the IAgent which will perform the attack |
RideID | weapon | the IWeapon the agent will use to attack the position |
Returns
Type | Description |
---|---|
IAttackResult | One IAttackResult per agent damaged |