Example #1
0
    public void SwitchScene <T>(ISceneInitData initData) where T : SceneBase
    {
        if (currentScene != null)
        {
            currentScene.DestoryScene();
            GameObject.Destroy(currentScene.gameObject);
            currentScene = null;
        }
        initializeNestScene = () => { initialize <T>(initData); };
        //SceneTransition.StartTransition(SwitchSceneProcess, () => { });

        //FIXME:
        initializeNestScene();
    }