public void New()
 {
     if (MessageBox.Show("Your current progress will be lost. \n Do you want to proceed?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
     {
         Application.LoadLevelAsync(Application.loadedLevel);
     }
 }
Exemple #2
0
 public static void LoadLevelAdditive(string name)
 {
     Application.LoadLevelAsync(name, -1, true, true);
 }
Exemple #3
0
 public static void LoadLevelAdditive(int index)
 {
     Application.LoadLevelAsync(null, index, true, true);
 }
Exemple #4
0
 public static AsyncOperation LoadLevelAdditiveAsync(string levelName)
 {
     return(Application.LoadLevelAsync(levelName, -1, true, false));
 }
Exemple #5
0
 public static AsyncOperation LoadLevelAdditiveAsync(int index)
 {
     return(Application.LoadLevelAsync(null, index, true, false));
 }
Exemple #6
0
 public static void LoadLevel(string name)
 {
     Application.LoadLevelAsync(name, -1, false, true);
 }
Exemple #7
0
 public static void LoadLevel(int index)
 {
     Application.LoadLevelAsync(null, index, false, true);
 }