public void Restart() { _player.ResetValues(); enemies.Restart(); towersManager.Restart(); Time.timeScale = 1; }
public void restart() { firsLoad = false; enemiesManager.Restart(); playerManager.restart(); CurrentGameState = GameState.Playing; clock.Reset(); UpgradeBar.spawnUpgradeBar = false; EndTime = 40 * 1000; }
private void LoseProcess() { ChangeGameState(GameState.Lose); TrySetScore((int)player.MaxHeight); _currentSessionScore = (int)player.MaxHeight; player.Restart(); platformsManager.Restart(); cameraScript.Restart(); enemiesManager.Restart(); }