Exemple #1
0
        private void RestartLevel()
        {
            enableUpdate = false;

            gameData.levelObject.SetActive(false);
            gameData.levelObject = null;

            OnRestartEvent?.Invoke();
        }
Exemple #2
0
 private void OnEnd()
 {
     OnRestart();
     OnRestartEvent?.Invoke();
     _currentTime = 0;
 }
Exemple #3
0
 public void Restart()
 {
     OnRestartEvent?.Invoke();
     gameEnded = false;
     DeleteFruits();
 }