Exemple #1
0
        protected void OnSceneChanged(Scene scene1, Scene scene2)
        {
            switch (_UnloadAndGameLoadState)
            {
            case UnloadAndGameLoadState.start:
            case UnloadAndGameLoadState.sceneload:
            {
                CloseUI();
            }
            break;

            case UnloadAndGameLoadState.over:
            {
                if (mStop)
                {
                    _SceneLoadEvent.UnregisterEvent();
                    _MainSceneLoadEvent.UnregisterEvent();

                    CutsceneSequencePlayer.StopCurrentCutscene();

                    //关闭ui
                    CloseUI();
                }
            }
            break;

            default:
                break;
            }
        }
Exemple #2
0
 void Back()
 {
     CutsceneSequencePlayer.StopCurrentCutscene();
 }
Exemple #3
0
 protected void OnSceneChanged(Scene scene1, Scene scene2)
 {
     CutsceneSequencePlayer.StopCurrentCutscene();
     CloseUI();
 }