Example #1
0
        public void RestartGame()
        {
            OnRestartGame?.Invoke();

            LevelController.Dispose();
            EnemyController.Dispose();

            StartGame();
        }
Example #2
0
        public void RestartGame()
        {
            _gameover = false;

            _coins = 0;
            MainMenu.Hide();
            GameOver.Hide();
            ScoreScreen.Hide();

            OnRestartGame?.Invoke();
        }
Example #3
0
    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);
        }
    }
Example #5
0
 public void OnMainMenuButtonClicked()
 {
     OnRestartGame?.Invoke();
 }
Example #6
0
 protected override void RestartGame()
 {
     Score = 0;
     OnRestartGame?.Invoke();
 }
 public static void RestartGame()
 {
     InternalRestartGame();
     OnRestartGame?.Invoke();
 }
 public static void NotifyReturnToMainMenu()
 {
     InternalRestartGame();
     OnRestartGame?.Invoke();
     OnShowMainMenu?.Invoke();
 }
Example #9
0
 public void RestartGame()
 {
     OnRestartGame?.Invoke();
 }
 protected override void RestartGame()
 {
     _selectedBone = null;
     OnRestartGame?.Invoke();
 }