public void UpdatePlayerInfo(GameInfoWithMoves gameInfo) { bool whiteMove = GetGameState() == GameState.WhiteMove; whitePlayerPanel.Setup(gameInfo.gamedata.wplayername, gameInfo.gamedata.wtimeleft, gameInfo.gamedata.wplayerrank, whiteMove); blackPlayerPanel.Setup(gameInfo.gamedata.bplayername, gameInfo.gamedata.btimeleft, gameInfo.gamedata.bplayerrank, !whiteMove); }
public void Setup(Player p1, Player p2) { p1Panel.Setup(p1); p2Panel.Setup(p2); }