Ejemplo n.º 1
0
 void Update()
 {
     //PRIKAZUJE SE BROJ COINA
     //mozda ovo ne treba da bude u update-u nego da se poziva updateTreasureLabels nakon kupovine
     foreach (UILabel l in coinLabels)
     {
         l.text = Crypting.DecryptInt(coinsCount).ToString();
     }
 }
Ejemplo n.º 2
0
    public string ToString()
    {
        string print = "Uid: " + uid + "; " +
                       "Name: " + name + "; " +
                       "Email: " + email + "; " +
                       "Fbid: " + fbid + "; " +
                       "Gender: " + gender + "; " +
                       "Ads: " + ads + "; " +
                       "Sound: " + sound + "; " +
                       "TimesPlayed: " + timesPlayed + "; " + "Best scores: ";

        for (int i = 0; i < bestScoreNames.Count; i++)
        {
            print += bestScoreNames[i] + ": " + Crypting.DecryptInt(bestScoreValues[i]) + ";";
        }

        return(print);
    }
Ejemplo n.º 3
0
 public int GetCoins()
 {
     return(Crypting.DecryptInt(coinsCount));
 }
Ejemplo n.º 4
0
 public void LivesMinus(int amount)
 {
     lives = Crypting.EncryptInt(Crypting.DecryptInt(lives) - amount);
     App.local.PlayerSave();
 }
Ejemplo n.º 5
0
 public void LivesPlus(int amount)
 {
     lives = Crypting.EncryptInt(Crypting.DecryptInt(lives) + amount);
 }
Ejemplo n.º 6
0
 public int GetLives()
 {
     return(Crypting.DecryptInt(lives));
 }