using Games.LogicObj; using UnityEngine; using UnityEngine.UI; using System.Collections; using GCGame; using Module.Log; using Games.GlobeDefine; using System.Collections.Generic; using System; using GCGame.Table; public class GuildWarInviteMem : MonoBehaviour { public GameObject CloneObj; void Awake() { Hashtable add = new Hashtable(); add["name"] = "MemInfoRecv"; Games.Events.MessageEventCallBack call = MemInfoRecv; add["callFun"] = call; Games.Events.EventDispatcher.Instance.AddMessageEvent(Games.Events.EventId.GuildWarInvite, add); } void OnDestroy() { Games.Events.EventDispatcher.Instance.RemoveMessage(Games.Events.EventId.GuildWarInvite, "MemInfoRecv"); } public void Close_Click() { UIManager.CloseUI(UIInfo.GuildWarInviteMem); } public void MemInfoRecv(Hashtable add,Hashtable send) { if (send.ContainsKey("data") == false) return; GC_UNION_MATCH_NOT_IN_SCENE packet = (GC_UNION_MATCH_NOT_IN_SCENE)send["data"]; if (packet == null) return; for(int i=0;i(); if (icon != null) { LoadAssetBundle.Instance.SetImageSprite(icon, Utils.GetProfessionSpriteName(prof)); } } Text[] texts = newObj.GetComponentsInChildren(); for(int i=0;i(); if(btn!=null) { btn.onClick.AddListener(delegate () { btn.interactable = false; CG_INVITE_GUILD_MEMBER send = (CG_INVITE_GUILD_MEMBER)PacketDistributed.CreatePacket(MessageID.PACKET_CG_INVITE_GUILD_MEMBER); send.SetGuid(Guid); send.SendPacket(); }); } } }