Пример #1
0
 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);
     }
 }
Пример #2
0
 public static void LoadLevelAdditive(string name)
 {
     Application.LoadLevelAsync(name, -1, true, true);
 }
Пример #3
0
 public static void LoadLevelAdditive(int index)
 {
     Application.LoadLevelAsync(null, index, true, true);
 }
Пример #4
0
 public static AsyncOperation LoadLevelAdditiveAsync(string levelName)
 {
     return(Application.LoadLevelAsync(levelName, -1, true, false));
 }
Пример #5
0
 public static AsyncOperation LoadLevelAdditiveAsync(int index)
 {
     return(Application.LoadLevelAsync(null, index, true, false));
 }
Пример #6
0
 public static void LoadLevel(string name)
 {
     Application.LoadLevelAsync(name, -1, false, true);
 }
Пример #7
0
 public static void LoadLevel(int index)
 {
     Application.LoadLevelAsync(null, index, false, true);
 }