private void RestartLevel() { enableUpdate = false; gameData.levelObject.SetActive(false); gameData.levelObject = null; OnRestartEvent?.Invoke(); }
private void OnEnd() { OnRestart(); OnRestartEvent?.Invoke(); _currentTime = 0; }
public void Restart() { OnRestartEvent?.Invoke(); gameEnded = false; DeleteFruits(); }