//Chess private void OpenGame(GameWithMovesResponse gameResponse) { SetLobbyRequestInProgress(false); ActivateChessScreen(); chessGameManager.LoadOnlineGame(gameResponse.game, currentPlayerData); }
private void OnPlayMoveFinished(GameWithMovesResponse gameResponse) { if (inChessGame) { chessGameManager.UpdatePlayerInfo(gameResponse.game); if (gameResponse.game.gamedata.gamestate == GameState.BlackMove || gameResponse.game.gamedata.gamestate == GameState.WhiteMove) { WaitForGameState(gameResponse.game.id); } } }
private void OnGameStateFinished(GameWithMovesResponse gameResponse) { if (inChessGame) { if (gameResponse.game.gamedata.gamestate != chessGameManager.GetGameState()) { chessGameManager.UpdateGameForOpponent(gameResponse.game); } else { WaitForGameState(gameResponse.game.id); } } }
private void OnAllGameInfo(GameWithMovesResponse gameResponse) { OpenGame(gameResponse); }