| | |
| | | {
|
| | | public StageName currentStage;
|
| | |
|
| | | public Action AfterEnterGame;
|
| | | public Action AfterLoadingGameScene;
|
| | |
|
| | | public Action BeforeEnterGame;
|
| | | public Action BeforeLoadingGameScene;
|
| | |
|
| | | // public Action OnSwitchAccount;
|
| | |
|
| | |
| | |
|
| | | public void Release()
|
| | | {
|
| | | AfterEnterGame = null;
|
| | | BeforeEnterGame = null;
|
| | | AfterLoadingGameScene = null;
|
| | | BeforeLoadingGameScene = null;
|
| | | }
|
| | |
|
| | | public async UniTaskVoid ToLoginScene()
|
| | |
| | | public async UniTaskVoid ToGameScene()
|
| | | {
|
| | | UIManager.Instance.DestroyAllUI();
|
| | |
|
| | | AfterEnterGame?.Invoke();
|
| | | |
| | | BeforeLoadingGameScene?.Invoke();
|
| | |
|
| | | // ResManager.Instance.PrewarmResources();
|
| | |
|
| | |
| | | // 加载初始化数据完成
|
| | | currentStage = StageName.Game;
|
| | |
|
| | | BeforeEnterGame?.Invoke();
|
| | | AfterLoadingGameScene?.Invoke();
|
| | |
|
| | | UIManager.Instance.OpenWindow<MainWin>();
|
| | | }
|