void Start () { if (gameModeIndexSet) { gameMode = (GameMode)gameModeIndex; } if (gameMode == GameMode.Regular) { GetComponent<Clock>().StartClock(); } Board.SetPositionFromFen (Definitions.gameStartFen,true); ZobristKey.Init (); Evaluation.Init (); if (regenerateOpeningBook) { OpeningBookGenerator.GenerateBook (); } if (useOpeningBook) { OpeningBookReader.Init (); } playerManager = GetComponent<MoveManager> (); playerManager.CreatePlayers (); Board.SetPositionFromFen (Definitions.gameStartFen,true); }
void Start() { if (gameModeIndexSet) { gameMode = (GameMode)gameModeIndex; } if (gameMode == GameMode.Regular) { // GetComponent<Clock>().StartClock(); } Board.SetPositionFromFen(Definitions.gameStartFen, true); ZobristKey.Init(); Evaluation.Init(); if (regenerateOpeningBook) { OpeningBookGenerator.GenerateBook(); } if (useOpeningBook) { OpeningBookReader.Init(); } playerManager = GetComponent <MoveManager> (); playerManager.CreatePlayers(); Board.SetPositionFromFen(Definitions.gameStartFen, true); }