public void Setup(IEnumerable <GameInfoPacket> data) { UnityMainThreadDispatcher.Instance().Enqueue(() => { _items.Generate <GamesListUiItem>(data, (packet, item) => { item.Setup(packet); }); UpdateGameJoinButton(); }); }
/// <summary> /// Uses the data to generate property controllers /// </summary> /// <param name="propData"></param> public void Setup(List <LobbyPropertyData> propData) { Properties.Generate(propData, (data, o) => { var view = o.GetComponent <LobbyPropController>(); view.Setup(data); view.AllowEditing(AllowEditing); view.UpdateValue(Lobby.JoinedLobby.Data.LobbyProperties[data.PropertyKey]); }); }
public void Setup(IEnumerable <GameInfoPacket> data) { _items.Generate <GamesListUiItem>(data, (packet, item) => { item.Setup(packet); }); UpdateGameJoinButton(); }