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