Example #1
0
        private void UpdateHealthState()
        {
            if (myGhostHealthState != GhostHealthState.Dead)
            {
                switch (Player.PowerUp)
                {
                case PowerUpType.None:
                case PowerUpType.WallUnlocker:
                    myGhostHealthState = GhostHealthState.Alive;
                    break;

                case PowerUpType.GhostEater:
                    myGhostHealthState = GhostHealthState.Scared;
                    break;
                }
            }
            else
            {
                if (Position == SpawnPosition)
                {
                    myGhostHealthState = GhostHealthState.Alive;
                }
            }
        }
Example #2
0
 private void GotEaten()
 {
     myGhostHealthState = GhostHealthState.Dead;
     SoundEffectManager.PlayGhostSound();
 }
Example #3
0
 private void SetDefaultNonParameterMemberVariables()
 {
     myGhostHealthState = GhostHealthState.Alive;
 }