Esempio n. 1
0
 void Solve()
 {
     if (c1.face.sprite == face.sprite)
     {
         p += 3;
         succes.Play();
         pairsThisLevel++;
         Reward(c1);
         Reward(this);
         Gm.CounterMinusOne(face.sprite);
         if (pairsThisLevel == Progress.PairsToEndLevel)
         {
             StartCoroutine(Gm.NextScene());
         }
     }
     else
     {
         p -= 1;
         fail.Play();
         c1.Resuma();
         Resuma();
     }
     c1      = null;
     sc.text = p.ToString();
 }