Пример #1
0
        public static SceneState GetState(SceneMan.State state)
        {
            //ensure call Create() first
            SceneMan pSceneMan = SceneMan.GetInstance();

            Debug.Assert(pSceneMan != null);

            SceneState pSceneState = null;

            switch (state)
            {
            case SceneMan.State.SelectScene:
                pSceneState = pSceneMan.pStateSelectScene;
                break;

            case SceneMan.State.GameScene:
                pSceneState = pSceneMan.pStateGameScene;
                break;

            case SceneMan.State.GameOverScene:
                pSceneState = pSceneMan.pStateGameOverScene;
                break;

            default:
                Debug.Assert(false);
                break;
            }

            return(pSceneState);
        }
Пример #2
0
        public static Scene GetScene()
        {
            //ensure call Create() first
            SceneMan pSceneMan = SceneMan.GetInstance();

            Debug.Assert(pSceneMan != null);

            return(pSceneMan.pScene);
        }