private void RefreshReward(GuaJiDiTuPeiZhi data) { if (data != null) { for (int i = 0; i < this.mRewardList.get_Count(); i++) { this.mRewardList.get_Item(i).get_gameObject().set_name("Unused"); this.mRewardList.get_Item(i).get_gameObject().SetActive(false); } for (int j = 0; j < data.drop.get_Count(); j++) { this.CreateReward(data.drop.get_Item(j)); } } }
private void RefreshArea(GuaJiDiTuPeiZhi data) { if (data != null) { ResourceManager.SetTexture(this.mRadarMap, data.miniMap); for (int i = 0; i < this.mAreaList.get_Count(); i++) { this.mAreaList.get_Item(i).SetUnused(); } for (int j = 0; j < data.area.get_Count(); j++) { this.CreateArea(data.area.get_Item(j)); } } }
private HuntMapItem CreateMapItem(GuaJiDiTuPeiZhi data) { if (data != null) { GameObject instantiate2Prefab = ResourceManager.GetInstantiate2Prefab("HuntMapItem"); UGUITools.SetParent(this.mMapContent, instantiate2Prefab, false); instantiate2Prefab.set_name("map" + data.id); HuntMapItem component = instantiate2Prefab.GetComponent <HuntMapItem>(); component.SetData(data.id, data.minLv, data.maxLv, data.name, data); component.EventHandler = new Predicate <HuntMapItem>(this.OnClickCity); instantiate2Prefab.SetActive(true); this.mMapList.Add(component); return(component); } return(null); }
public string GetRoomName(int map, int area) { string text = string.Empty; GuaJiDiTuPeiZhi guaJiDiTuPeiZhi = DataReader <GuaJiDiTuPeiZhi> .Get(map); if (guaJiDiTuPeiZhi != null) { text = text + GameDataUtils.GetChineseContent(guaJiDiTuPeiZhi.name, false) + " "; } GuaJiQuYuPeiZhi guaJiQuYuPeiZhi = DataReader <GuaJiQuYuPeiZhi> .Get(area); if (guaJiQuYuPeiZhi != null) { text = text + GameDataUtils.GetChineseContent(511603 + guaJiQuYuPeiZhi.areaType, false) + " "; } return(text); }
private void RefreshInfo(GuaJiDiTuPeiZhi data) { this.RefreshTimes(); this.RefreshReward(data); }
private void RefreshLeftPanel(GuaJiDiTuPeiZhi data) { this.RefreshArea(data); this.RefreshInfo(data); HuntManager.Instance.ClearCD(); }