private void UpdateMetal() { if (this.MetalTimer == MarioConfig.MetalDuration) { MarioConfig.SetMetalMarioSpeed(); } if (this.MetalTimer > 0) { this.MetalTimer--; } if (this.MetalTimer <= 0 && this.CurrentState.PowerLevel() == MarioPowerLevel.Metal) { this.RespondToRequest(MarioActionRequest.GoFire); MarioConfig.SetNormalMarioSpeed(); } }
public void ResetLevel() { if (GameStats.Lives < 0) { this.MenuDisplaying = true; GameStats.Points = 0; GameStats.Lives = 1; this.LevelBeingPlayed = 0; this.ResetCurrentLevel(); } else { ResetCurrentLevel(); } MarioConfig.SetNormalMarioSpeed(); }