public void AddScene(int i, Action <Scene> Callback) { StartCoroutine(Nuwn_Essentials.AddNewScene(i, -1, (v) => { if (v) { Callback(SceneManager.GetSceneByBuildIndex(i)); } })); }
public void AddScene(int i) { StartCoroutine(Nuwn_Essentials.AddNewScene(i)); }
public void AddScene(int i, int oldScene) { StartCoroutine(Nuwn_Essentials.AddNewScene(i, oldScene)); }
/// <summary> /// /// </summary> /// <param name="i"></param> /// <param name="oldScene">-1 if you want to unload manually</param> public void LoadScene(int i) { StartCoroutine(Nuwn_Essentials.LoadNewScene(i, -1)); }