예제 #1
0
        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);
        }
예제 #2
0
 public void Setup(Player p1, Player p2)
 {
     p1Panel.Setup(p1);
     p2Panel.Setup(p2);
 }