private void ChangeScene()
        {
            MYXZUIManager.Instance.PopPanel();
            LoadingScenePanelView LoadingSceneView =
                MYXZUIManager.Instance.GetPanel(UIPanelType.LoadingScenePanel) as LoadingScenePanelView;

            LoadingSceneView.TargetSceneName = TargetScene;
            MYXZUIManager.Instance.PushPanel(UIPanelType.LoadingScenePanel);
        }
예제 #2
0
        private void ChangeScene()
        {
            if (TargetScene.Equals("StartScene"))
            {
                Object.Destroy(WorldSpaceGameRoot.Instance.gameObject);
            }
            MYXZUIManager.Instance.PopPanel();
            LoadingScenePanelView LoadingSceneView =
                MYXZUIManager.Instance.GetPanel(UIPanelType.LoadingScenePanel) as LoadingScenePanelView;

            LoadingSceneView.TargetSceneName = TargetScene;
            MYXZUIManager.Instance.PushPanel(UIPanelType.LoadingScenePanel);
            if (bl_HUDText.Instance != null)
            {
                bl_HUDText.Instance.Clear();
            }
        }