示例#1
0
 public void AddScene(int i, Action <Scene> Callback)
 {
     StartCoroutine(Nuwn_Essentials.AddNewScene(i, -1, (v) => { if (v)
                                                                {
                                                                    Callback(SceneManager.GetSceneByBuildIndex(i));
                                                                }
                                                }));
 }
示例#2
0
 public void AddScene(int i)
 {
     StartCoroutine(Nuwn_Essentials.AddNewScene(i));
 }
示例#3
0
 public void AddScene(int i, int oldScene)
 {
     StartCoroutine(Nuwn_Essentials.AddNewScene(i, oldScene));
 }
示例#4
0
 /// <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));
 }