示例#1
0
 public void LoadScene(string name, LoadCompletedDelegate finishDelegate)
 {
     Application.LoadLevel(name);
     if (finishDelegate != null)
     {
         finishDelegate();
     }
 }
示例#2
0
    private IEnumerator load()
    {
        SceneManager.LoadScene(sceneName);

        yield return(null);

        if (finishDel != null)
        {
            finishDel();

            finishDel = null;
        }
    }
示例#3
0
 public void LoadScene(string name, SceneLoader.LoadCompletedDelegate finishDelegate = null)
 {
     this.sceneName = name;
     this.finishDel = finishDelegate;
     StartCoroutine(load());
 }