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