Ejemplo n.º 1
0
 public void InitializeTotalScoresToZero()
 {
     for (int i = 0; i < totalScores.Count; i++)
     {
         totalScores[i].score = Crypting.EncryptFloat(0);
     }
 }
Ejemplo n.º 2
0
 public void InitializeScoresToZero()
 {
     foreach (Score s in scores)
     {
         s.score = Crypting.EncryptFloat(0);
     }
 }
Ejemplo n.º 3
0
 public void InitializeBestScoresToZero()
 {
     for (int i = 0; i < bestScores.Count; i++)
     {
         bestScores[i].score     = Crypting.EncryptFloat(0);
         bestScores[i].scoreName = scores[i].scoreName;
     }
 }
Ejemplo n.º 4
0
 public void SetScore(float amount, string name)
 {
     for (int i = 0; i < scores.Count; i++)
     {
         if (scores[i].scoreName.CompareTo(name) == 0)
         {
             scores[i].score = Crypting.EncryptFloat(amount);
         }
     }
 }
Ejemplo n.º 5
0
 public void ScoreMinus(float amount, string name)
 {
     for (int i = 0; i < scores.Count; i++)
     {
         if (scores[i].scoreName.CompareTo(name) == 0)
         {
             scores[i].score = Crypting.EncryptFloat(Crypting.DecryptFloat(scores[i].score) - amount);
             foreach (UILabel labela in scores[i].scoreLabels)
             {
                 labela.text = GetScore(scores[i].scoreName).ToString();
             }
         }
     }
 }
Ejemplo n.º 6
0
 public Score(string name, float sc, bool isItFloat)
 {
     score     = Crypting.EncryptFloat(sc);
     scoreName = name;
     isFloat   = isItFloat;
 }
Ejemplo n.º 7
0
 public Score(float sc)
 {
     score = Crypting.EncryptFloat(sc);
 }