示例#1
0
 public override void OnClick()
 {
     chessController.StartNewGame();
     chessController.activePlayer = chessController.whitePlayer;
     chessController.GenerateAllPossiblePlayerMoves(chessController.activePlayer);
     gameStartAnimation.SetBool("changeViewToChessBoard", true);
     FadeOut();
     gameObject.SetActive(false);
 }
示例#2
0
 public void Play()
 {
     if (settingsHandler.AreSettingsSet())
     {
         DeactivateOptions(playWith);
         DeactivateOptions(playAs);
         randomBoard.Clear();
         settingsHandler.InitializeSettings();
         settingsHandler.ResetSettings();
         ActivateGame();
         gameController.StartNewGame();
     }
 }