コード例 #1
0
 public void Setup(IEnumerable <GameInfoPacket> data)
 {
     UnityMainThreadDispatcher.Instance().Enqueue(() =>
     {
         _items.Generate <GamesListUiItem>(data, (packet, item) => { item.Setup(packet); });
         UpdateGameJoinButton();
     });
 }
コード例 #2
0
        /// <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]);
            });
        }
コード例 #3
0
 public void Setup(IEnumerable <GameInfoPacket> data)
 {
     _items.Generate <GamesListUiItem>(data, (packet, item) => { item.Setup(packet); });
     UpdateGameJoinButton();
 }