In the AI code for pathfinding:
public override EnemyAIAction GetEnemyAIAction(GridPosition gridPosition)
{
//This is where we go the unit code to get the target value
int targetCountAtGridPosition = unit.GetAction<ShootAction>().GetTargetCountAtPosition(gridPosition);
}
…we see that the pathfinding is dependent upon the ShootAction script. What if I wanted to make a character that only performs a SwordAction, or a GrenadeAction. Would I just replace what is in the <> brackets?
Thanks so much!