Exemple #1
0
        private void OnGameRestarted(GameRestarted gameRestartedEvent)
        {
            if (_coinCounter < numberOfCoinsToPickUp && !_playerLost)
            {
                _coinCounter   = 0;
                _coinText.text = "Coins: 0";
            }

            _playerLost = false;
        }
Exemple #2
0
 private void OnGameRestarted(GameRestarted gameRestartedEvent)
 {
     Restart();
 }
Exemple #3
0
 private void OnGameRestarted(GameRestarted gameRestartedEvent)
 {
     _spawnsPerMinute = defaultSpawnsPerMinute;
     CalculateSpawnsPerMinute();
 }
Exemple #4
0
 private void OnGameRestarted(GameRestarted gameRestartedEvent)
 {
     _startTime = Time.time;
 }
Exemple #5
0
 private void OnGameRestarted(GameRestarted gameRestartedEvent)
 {
     ResetAllObjects();
 }
 private void OnGameRestarted(GameRestarted e)
 {
     particleSystem.gameObject.SetActive(false);
     particleSystem.Stop(true);
     StopCoroutine("AutoDestruct");
 }
Exemple #7
0
 private void OnGameRestarted(GameRestarted e)
 {
     Restart();
 }