void GiveSecondChance() { SecondChanceUsed = ESecondChance.Activated; Application.LoadLevel("NextLevel"); }
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"); } }