Exemplo n.º 1
0
 public void UpgradePlayer()
 {
     if (Data.GetCurrency() < Data.GetUpgradePrice())
     {
         return;
     }
     DecreaseCurrency(Data.GetUpgradePrice());
     Data.UpgradePlayer();
 }