Example #1
0
    /// <summary>
    /// 加载场景
    /// </summary>
    /// <param name='scene'>场景</param>
    public void LoadScene(ESCENE scene)
    {
        leavingScene  = enteringScene;
        enteringScene = scene;

        sceneManagerHelper.leavingScene  = leavingScene;
        sceneManagerHelper.enteringScene = enteringScene;
        Leave();
        sceneManagerHelper.LoadLevel(scene.ToString());
    }