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 GuildWarResultInfo : MonoBehaviour { public GameObject MatchLevelObj; public GameObject MatchInfoObj; Dictionary MatchLevel = new Dictionary() { {0,"#{35101}" }, {1,"#{35102}" }, {2,"#{35103}" }, {3,"#{35104}" }, {4,"#{35105}" }, {5,"#{35106}" }, {6,"#{35107}" }, {7,"#{35108}" }, {8,"#{35109}" }, {9,"#{35110}" }, }; Dictionary MatchSC = new Dictionary() { {0,"#{35111}" }, {1,"#{35112}" }, {2,"#{35113}" }, }; void Awake() { Hashtable add = new Hashtable(); add["name"] = "GuildMatchResult"; Games.Events.MessageEventCallBack call = ResultInfo; add["callFun"] = call; Games.Events.EventDispatcher.Instance.AddMessageEvent(Games.Events.EventId.GuildWarResultInfo, add); } void Start() { for(int i=0;i<10;i++) { CloneMatchLevelObj(i); } } void OnDestroy() { Games.Events.EventDispatcher.Instance.RemoveMessage(Games.Events.EventId.GuildWarResultInfo, "GuildMatchResult"); } public void Click_Close() { UIManager.CloseUI(UIInfo.GuildWarResultInfo); } public void ResultInfo(Hashtable add,Hashtable send) { if (send.ContainsKey("data") == false) return; GC_UNION_MATCH_FIGHT_LIST packet = (GC_UNION_MATCH_FIGHT_LIST)send["data"]; if (packet == null) return; for (int i = 0; i < matchinfoObjs.Count; i++) { GameObject obj = matchinfoObjs[i]; obj.SetActive(false); GameObject.Destroy(obj); } matchinfoObjs.Clear(); for (int i=0;i(); Text HL_Name = selectTran.GetComponentInChildren(); Button btn = newObj.GetComponentInChildren