/// <summary>好友列表 </summary> public static void InviteFriend(net_protocol.MatcherFriendResp resp) { var node = NodeManager.GetNode <MatchReadyNode>(); if (node) { node.invitePanel.CreateItem(resp); } }
public void CreateItem(net_protocol.MatcherFriendResp resp) { var dataList = resp.inviteUser; notHaveFriendPanel.SetActive(dataList.Count < 1); for (int i = 0; i < dataList.Count; i++) { var item = Instantiate(prefab, content); item.panel = this; item.Init(dataList[i]); ItemList.Add(item); } }