public void SetBoost(BoostProduct boost, Action callbackL) { boostType = boost.boostType; gameObject.SetActive(true); // icon.sprite = boost.icon; boost.boostIconObject.SetActive(true); description.text = boost.description; transform.Find("Image/BuyBoost/Count").GetComponent <TextMeshProUGUI>().text = "x" + boost.count; transform.Find("Image/BuyBoost/Price").GetComponent <TextMeshProUGUI>().text = "" + boost.GemPrices; boostName.text = boost.name; callback = callbackL; }
private void FindBoostProduct() { boostProduct = BoostShop.boostProducts[(int)type]; }
private static void OpenBoostShop(BoostProduct boost, Action callback) { BoostShop.SetBoost(boost, callback); }
private void InitBoostData() { currentBackpackItem = User.Instance.getBackpackItem(ItemId); currentBoostProduct = User.Instance.BoostProducts.Find(i => i.id == ItemId); }