Пример #1
0
 void Awake()
 {
     //Inicijalizacija na nulu
     diamondCount = Crypting.EncryptInt(0);
     coinsCount   = Crypting.EncryptInt(0);
     lives        = Crypting.EncryptInt(maxLives);
 }
Пример #2
0
 public void CoinsMinus(int amount)
 {
     if ((GetCoins() - amount) < 0)
     {
         coinsCount = Crypting.EncryptInt(0);
     }
     else
     {
         coinsCount = Crypting.EncryptInt(GetCoins() - amount);
     }
 }
Пример #3
0
 public void CoinsPlus(int amount)
 {
     coinsCount = Crypting.EncryptInt(GetCoins() + amount);
 }
Пример #4
0
 public void LivesMinus(int amount)
 {
     lives = Crypting.EncryptInt(Crypting.DecryptInt(lives) - amount);
     App.local.PlayerSave();
 }
Пример #5
0
 public void LivesPlus(int amount)
 {
     lives = Crypting.EncryptInt(Crypting.DecryptInt(lives) + amount);
 }
Пример #6
0
 public void SetLives(int amount)
 {
     lives = Crypting.EncryptInt(amount);
 }