public static void Player1GameOver() { GameScene pScene = GameScene.PrivGetInstance(); Debug.Assert(pScene != null); if (pScene.pState is Player1Scene) { Player1Scene pp1s = (Player1Scene)pScene.pState; pp1s.GameOver(); } }
private GameSceneManager() { this.pSelect = new SelectScene(); Debug.Assert(this.pSelect != null); this.p1Scene = new Player1Scene(); Debug.Assert(this.p1Scene != null); this.p2Scene = new Player2Scene(); Debug.Assert(this.p2Scene != null); this.pOver = new GameOverState(); Debug.Assert(this.pOver != null); }