public void MoveToDirection(Vector2 direction) { if (ressources.IsThereEnoughOf(movementCost.type, movementCost.amount)) { movement.MoveToDirection(direction); ressources.RemoveRessource(movementCost.type, movementCost.amount * Time.deltaTime); } }