public void OrderMissile(Player contextPlayer) { if (contextPlayer.CanAfford(missilePrice)) { contextPlayer.Pay(missilePrice); deliverySystem.OrderItem(this, contextPlayer.PlayerId); canOrder = false; } }
public void OrderMissileLauncher(Player contextPlayer) { if (deliverySystem.CanOrder) { deliverySystem.OrderItem(this, contextPlayer.PlayerId); Debug.Log(buildingCosts); contextPlayer.Pay(buildingCosts); canOrder = false; } }