コード例 #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();
     }
 }
コード例 #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);
    }
コード例 #3
0
 public int GetCoins()
 {
     return(Crypting.DecryptInt(coinsCount));
 }
コード例 #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 int GetLives()
 {
     return(Crypting.DecryptInt(lives));
 }