Esempio n. 1
0
 public void TurnDone()
 {
     Audio.PlaySound("Drop");
     if (IsAllTokensConnected())
     {
         Debug.Log("Win!");
         Audio.PlaySound("Victory");
         HUD.Instance.CountScore(m_level.Turns);
         m_currentLevel++;
         Score.AddLevelBonus();
         Destroy(m_field.gameObject);
     }
     else
     {
         Debug.Log("Continue...");
         if (m_level.Turns > 0)
         {
             m_level.Turns--;
         }
     }
 }