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); }
public static Scene GetScene() { //ensure call Create() first SceneMan pSceneMan = SceneMan.GetInstance(); Debug.Assert(pSceneMan != null); return(pSceneMan.pScene); }