public void GameStop() { if (!IsGameStart) { return; } IsGameStart = false; OnGameStop?.Invoke(); }
private void StopGame(bool enableOutro = true) { _currentState = GameState.STOP; // Stop spawning enemies _spawnManager.StopSpawning(); // Invoke Event OnGameStop?.Invoke(); if (enableOutro) { PlayGameOutro(TerminateGame); } else { TerminateGame(); } }
public void StopGame() { _timer.Enabled = false; OnGameStop?.Invoke(); }