示例#1
0
    public void EnterScene(SceneBase scene)
    {
        if (CurrentScene != null)
        {
            CurrentScene.OnSceneWillUnload();
            CurrentScene.OnSceneUnloaded();
        }

        CurrentScene = scene;
        CurrentScene.OnSceneWillLoad();
        CurrentScene.OnSceneLoaded();
    }