Пример #1
0
 public void buyDegat()
 {
     if (Player_Info.Money >= ShopInfo.AttackPrice)
     {
         Player_Info.BuyDamage();
         print(Player_Info.degat);
         Player_Info.reduceMoney(ShopInfo.AttackPrice);
         ShopInfo.incrementAttack();
         updateAttackPrice();
         updatePlayerMoney();
         playCoinAudio();
         save();
     }
     else
     {
         errorAttackPrice();
         Invoke("updateAttackPrice", 3f);
     }
 }