Example #1
0
    public void updatePlayersInfo()
    {
        var players = manager.getPlayers();

        for (int i = 0; i < players.Count; i++)
        {
            InfoHandler infoHandler = playerObjects[i].GetComponent <InfoHandler>();

            if (infoHandler.getPlayer().id == players[i].id)
            {
                infoHandler.setReady(manager.isReady());
                infoHandler.setPlayer(players[i]);
                infoHandler.setTurn(manager.getTurnIndex());
            }
        }
    }