public void RestartGame() { OnRestartGame?.Invoke(); LevelController.Dispose(); EnemyController.Dispose(); StartGame(); }
public void RestartGame() { _gameover = false; _coins = 0; MainMenu.Hide(); GameOver.Hide(); ScoreScreen.Hide(); OnRestartGame?.Invoke(); }
protected override void RestartGame() { base.RestartGame(); OnRestartGame?.Invoke(); _throwsLeft = _numberThrows; PlayerScore = 0; EnemyScore = 0; OnChangedNumberThrows?.Invoke(_throwsLeft / 2); }
private void Update() { if (Input.GetKeyDown(KeyCode.R)) { Debug.Log("=-=-=-=- RESTARTING -=-=-=-="); OnRestartGame?.Invoke(); } if (Input.GetKeyDown(KeyCode.Equals) || Input.GetKeyDown(KeyCode.Plus)) { OnHealAll?.Invoke(5); } if (Input.GetKeyDown(KeyCode.Minus)) { OnDamageAll?.Invoke(5); } }
public void OnMainMenuButtonClicked() { OnRestartGame?.Invoke(); }
protected override void RestartGame() { Score = 0; OnRestartGame?.Invoke(); }
public static void RestartGame() { InternalRestartGame(); OnRestartGame?.Invoke(); }
public static void NotifyReturnToMainMenu() { InternalRestartGame(); OnRestartGame?.Invoke(); OnShowMainMenu?.Invoke(); }
public void RestartGame() { OnRestartGame?.Invoke(); }
protected override void RestartGame() { _selectedBone = null; OnRestartGame?.Invoke(); }