Esempio n. 1
0
    public void UpgradeTimeSlow()
    {
        var canUpgradeSlowTime = timeSlow >= TimeSlowCap || balance < timeSlowUpgrCost;

        if (canUpgradeSlowTime)
        {
            return;
        }
        balance  -= timeSlowUpgrCost;
        timeSlow += 2;
        GamerPrefs.SetSlowTimeDuration(timeSlow);
        GamerPrefs.SetMoney(balance);
        HandleOkaneBalance();
        HandleTimeSlow();
    }
Esempio n. 2
0
 public void UpgradeTimeSlow()
 {
     if (!(timeSlow >= Time_Slow_Cap))
     {
         if (balance >= timeSlowUpgrCost)
         {
             balance  -= timeSlowUpgrCost;
             timeSlow += 2;
             GamerPrefs.SetSlowTimeDuration(timeSlow);
             GamerPrefs.SetOkane(balance);
             HandleOkaneBalance();
             HandleTimeSlow();
         }
     }
 }