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); } }