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; } } }
private void GotEaten() { myGhostHealthState = GhostHealthState.Dead; SoundEffectManager.PlayGhostSound(); }
private void SetDefaultNonParameterMemberVariables() { myGhostHealthState = GhostHealthState.Alive; }