private void OnGameRestarted(GameRestarted gameRestartedEvent) { if (_coinCounter < numberOfCoinsToPickUp && !_playerLost) { _coinCounter = 0; _coinText.text = "Coins: 0"; } _playerLost = false; }
private void OnGameRestarted(GameRestarted gameRestartedEvent) { Restart(); }
private void OnGameRestarted(GameRestarted gameRestartedEvent) { _spawnsPerMinute = defaultSpawnsPerMinute; CalculateSpawnsPerMinute(); }
private void OnGameRestarted(GameRestarted gameRestartedEvent) { _startTime = Time.time; }
private void OnGameRestarted(GameRestarted gameRestartedEvent) { ResetAllObjects(); }
private void OnGameRestarted(GameRestarted e) { particleSystem.gameObject.SetActive(false); particleSystem.Stop(true); StopCoroutine("AutoDestruct"); }
private void OnGameRestarted(GameRestarted e) { Restart(); }