public static void DestroySelf() { if (_this != null) { _this.Close(); _this = null; } }
public static void OpenUI(int ChapterID) { Object prefab = PrefabLoader.loadFromPack("JC/DropRewardPanel"); if (prefab != null) { GameObject obj = Instantiate(prefab) as GameObject; RED.AddChild(obj, DBUIController.mDBUIInstance._TopRoot); _this = obj.GetComponent <DropRewardPanel>(); _this.ChapterID = ChapterID; //30100 int numIndex = (_this.ChapterID - 30000) / 100 - 1; if (numIndex >= 0 && numIndex < _this.Nums.Count) { _this.Title.text = Core.Data.stringManager.getString(20001).Replace("#", _this.Nums[numIndex]); } } }
//跳转到指定的副本 void Jump() { DBUIController.mDBUIInstance.JumpToFB(this.floordata.config.ID); DropRewardPanel.DestroySelf(); }
//查看掉落 public void BtnClick_LookDropReward(GameObject btn) { DropRewardPanel.OpenUI(System.Convert.ToInt32(name)); }