Exemplo n.º 1
0
        private IEnumerator RestartGameRoutine()
        {
            _isActionAvailable.Value = false;

            _playerController.ClearCards();

            yield return(null);

            StartGame();

            GameRestarted?.Invoke();
        }
        public void RestartGameButtonHandler()
        {
            SceneActivationBehaviour <ToolbarUIActivator> .Instance.ToggleToPaint();

            GameRestarted?.Invoke();
        }
Exemplo n.º 3
0
 public void RestartGame()
 {
     field = new Field();
     GameRestarted?.Invoke();
 }
Exemplo n.º 4
0
 public void RestartGame()
 {
     _board = new Board();
     _board.SetBlackHole(GenerateBlackHoleCoords());
     GameRestarted?.Invoke();
 }
Exemplo n.º 5
0
 public void RestartGame(Tuple <int, int> blackHoleCoords)
 {
     board = new Board();
     board.SetBlackHole(blackHoleCoords);
     GameRestarted?.Invoke();
 }
Exemplo n.º 6
0
 public void Restart()
 {
     _gameField   = new GameField();
     _currentMark = GameMark.X;
     GameRestarted?.Invoke(this, EventArgs.Empty);
 }