public void InitData(BagPop m, BagPop.TabType i) { bg = this.GetComponent <UISprite>(); btn = this.GetComponent <UIButton>(); pop = m; id = i; }
public void BagClick() { if (isShow[(int)PopType.Bag] != true) { GameObject obj = Instantiate(BagPop); obj.SetActive(true); BagPop pop = obj.GetComponent <BagPop>(); pop.InitData(); pop.transform.parent = this.transform; pop.transform.localScale = Vector3.one; isShow[(int)PopType.Bag] = true; } }
public void OpenPop(BagPop p) { pop = p; BagMgr.Instance.BagList(); pop.SetTab(); }