public static void EndLevel() { if (CurrentMode != PlayMode.Finished) { Score += Mathf.CeilToInt(LevelTimer) * TimeBonusMultiplier; } CurrentMode = PlayMode.Finished; SoundBoard.StopMusic(); SoundBoard.PlayFinish(); GameOverScreen.Show(); }
public static void EndLevel() { if (CurrentMode != PlayMode.Finished) { Score += Mathf.CeilToInt(LevelTimer) * TimeBonusMultiplier; } CurrentMode = PlayMode.Finished; SoundBoard.StopMusic(); SoundBoard.PlayFinish(); GameOverScreen.Show(); }