////////////////////////////////////////////////////////////////////////// void OnGuildMemberGet(C2G.GuildMemberGet packet, C2G.GuildAck ack) { GuildManager.Instance.SetGuildInfo(ack.guild_info); GuildManager.Instance.SetGuildMembers(ack.guild_members.Select(e => new pd_GuildMemberInfoDetail(e)).ToList()); InitGuildMembers(); UpdateGuildInfo(GuildManager.Instance.GuildInfo); parent.AddManagementTab(); }
override public void Init(Guild _parent) { base.Init(_parent); GuildInfoPrefabManager.Clear(); m_GuildInfoDetail = GuildInfoPrefabManager.GetNewObject <GuildInfoDetail>(GuildInfoPrefabManager.transform, Vector3.zero); if (GuildManager.Instance.GuildMembers == null) { C2G.GuildMemberGet packet = new C2G.GuildMemberGet(); packet.guild_idx = GuildManager.Instance.GuildIdx; Network.GameServer.JsonAsync <C2G.GuildMemberGet, C2G.GuildAck>(packet, OnGuildMemberGet); } else { UpdateGuildInfo(GuildManager.Instance.GuildInfo); InitGuildMembers(); } }