Exemplo n.º 1
0
 void GiveSecondChance()
 {
     SecondChanceUsed = ESecondChance.Activated;
     Application.LoadLevel("NextLevel");
 }
Exemplo n.º 2
0
    public void OnContinueTap()
    {
        if (!EndOfLevelController.IsGameOver)
        {
			if (GameController.Stages.CurrentStage.IsLastLevel())
			{
				Application.LoadLevel("NextLevel");
			}
			else
			{
				Application.LoadLevel("Game");
			}
        }
        else
        {
            if (SecondChanceUsed != ESecondChance.Activated)
            {
                GameController.Stages.ResetProgress();
            }
            if (SecondChanceUsed == ESecondChance.Used)
            {
                SecondChanceUsed = ESecondChance.NotActive;
            }
            Application.LoadLevel("Menu");
        }
    }