Example #1
0
 public void Upgrade()
 {
     if (active.building != null && player.Money >= active.upgradeCosts())
     {
         active.upgrade();
         player.Money -= active.upgradeCosts();
     }
     Cancel();
 }