public static SceneState GetState(State state) { SceneMan pSceneMan = SceneMan.PrivInstance(); Debug.Assert(pSceneMan != null); SceneState pSceneState = null; switch (state) { case SceneMan.State.Tract: pSceneState = pSceneMan.pStateTract; break; case SceneMan.State.Game: pSceneState = pSceneMan.pStateGame; break; case SceneMan.State.Gameover: pSceneState = pSceneMan.pStateGameover; break; default: Debug.Assert(false); break; } return(pSceneState); }
public static Scene GetScene() { SceneMan pSceneMan = SceneMan.PrivInstance(); Debug.Assert(pSceneMan != null); Debug.Assert(pSceneMan.pScene != null); return(pSceneMan.pScene); }
private static Scene ActivateScene() { SceneMan pSceneMan = SceneMan.PrivInstance(); Debug.Assert(pSceneMan != null); Scene pScene = new Scene(); pSceneMan.pScene = pScene; return(pSceneMan.pScene); }