Beispiel #1
0
        static public void AddScoreToPlayer1(int score)
        {
            ScoreManager pMan = ScoreManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.Player1_Score += score;
            pMan.CheckHighScore();
            ScoreManager.UpdateAllScore();
        }
Beispiel #2
0
        public static void PlayerDead()
        {
            PlayerManager pMan = PlayerManager.PrivGetInstance();

            Debug.Assert(pMan.poPlayer != null);

            SoundManager.Play(Sound.Name.PlayerExplode);
            GameScene.Player1Dead();
            ScoreManager.UpdateAllScore();
            PlayerManager.SetPlayerDead();
            pMan.poPlayer.y = -50;
            pMan.poPlayer.SetShootingState(ShootState.PlayerDead);
        }