void Awake()
 {
     //Inicijalizacija na nulu
     diamondCount = Crypting.EncryptInt(0);
     coinsCount   = Crypting.EncryptInt(0);
     lives        = Crypting.EncryptInt(maxLives);
 }
 public void CoinsMinus(int amount)
 {
     if ((GetCoins() - amount) < 0)
     {
         coinsCount = Crypting.EncryptInt(0);
     }
     else
     {
         coinsCount = Crypting.EncryptInt(GetCoins() - amount);
     }
 }
 public void CoinsPlus(int amount)
 {
     coinsCount = Crypting.EncryptInt(GetCoins() + amount);
 }
 public void LivesMinus(int amount)
 {
     lives = Crypting.EncryptInt(Crypting.DecryptInt(lives) - amount);
     App.local.PlayerSave();
 }
 public void LivesPlus(int amount)
 {
     lives = Crypting.EncryptInt(Crypting.DecryptInt(lives) + amount);
 }
 public void SetLives(int amount)
 {
     lives = Crypting.EncryptInt(amount);
 }