/// <summary> /// Constructor. /// </summary> public GameplayScreen(bool multiplayer) { board.Initialize(); lastPieceCount = board.PieceCount; player1 = new LocalPlayer(BoardColors.White, PlayerIndex.One, boardSize); if (multiplayer) { player2 = new LocalPlayer(BoardColors.Black, PlayerIndex.Two, boardSize); } else { player2 = new AiPlayer(BoardColors.Black); } float boardPositionValue = -0.5f * tileSize * (float)boardSize + tileSize / 2f; boardPosition = new Vector3(boardPositionValue, 1f, boardPositionValue); AudioManager.PlayMusic("Music_Game"); }