private void buttonClick(ButtonScript obj, object args, int param1, int param2) { HomeShopData hdata = HomeShopData.GetHomeShopData(param1); if (param2 == 0) { PopText.Instance.Show(LanguageManager.instance.GetValue("goumaicishu")); return; } familyShopObj.SetActive(true); FamilyShopBuyUI fsb = familyShopObj.GetComponent <FamilyShopBuyUI>(); fsb.Hdata = hdata; }
private void buttonClick(ButtonScript obj, object args, int param1, int param2) { /// <summary> /// 买道具 /// </summary> /// /// HomeShopData hdata = HomeShopData.GetHomeShopData(param1); familyShopObj.SetActive(true); FamilyShopBuyUI fsb = familyShopObj.GetComponent <FamilyShopBuyUI>(); fsb.Hdata = hdata; }
public void UpdateGuildShop(COM_GuildShopItem [] itemids) { for (int i = 0; i < 6; i++) { GameObject o = GameObject.Instantiate(item) as GameObject; FamilyShopCell fcell = o.GetComponent <FamilyShopCell>(); o.SetActive(true); o.transform.parent = grid.transform; o.transform.localScale = new Vector3(1, 1, 1); if (i < itemids.Length) { HomeShopData hdata = HomeShopData.GetHomeShopData(itemids[i].shopId_); fcell.HShopItem = itemids[i]; UIManager.SetButtonEventHandler(o, EnumButtonEvent.OnClick, buttonClick, itemids[i].shopId_, itemids[i].buyLimit_); } else { fcell.HideUI(i); } grid.repositionNow = true; } }