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); } }
public static void LoadLevelAdditive(string name) { Application.LoadLevelAsync(name, -1, true, true); }
public static void LoadLevelAdditive(int index) { Application.LoadLevelAsync(null, index, true, true); }
public static AsyncOperation LoadLevelAdditiveAsync(string levelName) { return(Application.LoadLevelAsync(levelName, -1, true, false)); }
public static AsyncOperation LoadLevelAdditiveAsync(int index) { return(Application.LoadLevelAsync(null, index, true, false)); }
public static void LoadLevel(string name) { Application.LoadLevelAsync(name, -1, false, true); }
public static void LoadLevel(int index) { Application.LoadLevelAsync(null, index, false, true); }