public void restart()
 {
     Debug.Log("Button Clicked");
     if (CurrentLevel.currentLevel < 8)
     {
         GameEnd.clearLevelElement();
         CurrentLevel.currentLevel += 1;
         Application.LoadLevel(CurrentLevel.currentLevel);
     }
     else
     {
         GameEnd.clearLevelElement();
         Application.LoadLevel("Begin");
     }
 }
Exemple #2
0
 public void loadChapter4_2()
 {
     CurrentLevel.currentLevel = 8;
     GameEnd.clearLevelElement();
     Application.LoadLevel("Level4_2");
 }
Exemple #3
0
 public void loadChapter3_1()
 {
     CurrentLevel.currentLevel = 5;
     GameEnd.clearLevelElement();
     Application.LoadLevel("Level3_1");
 }
Exemple #4
0
 // Use this for restarting game
 public void restart()
 {
     GameEnd.clearLevelElement();
     Debug.Log("Button Clicked");
     Application.LoadLevel(CurrentLevel.currentLevel);
 }
Exemple #5
0
 public void mainMenu()
 {
     GameEnd.clearLevelElement();
     Debug.Log("Button Clicked");
     Application.LoadLevel(0);
 }