Ejemplo n.º 1
0
 public void MoveToDestination(Vector2 destination)
 {
     //check if we have the necessary ressources
     if (ressources.IsThereEnoughOf(movementCost.type, movementCost.amount))
     {
         movement.MoveToDestination(destination);
         ressources.RemoveRessource(movementCost.type, movementCost.amount * Time.deltaTime);
     }
 }