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;
 }
Beispiel #2
0
 private void FindBoostProduct()
 {
     boostProduct = BoostShop.boostProducts[(int)type];
 }
Beispiel #3
0
 private static void OpenBoostShop(BoostProduct boost, Action callback)
 {
     BoostShop.SetBoost(boost, callback);
 }
Beispiel #4
0
 private void InitBoostData()
 {
     currentBackpackItem = User.Instance.getBackpackItem(ItemId);
     currentBoostProduct = User.Instance.BoostProducts.Find(i => i.id == ItemId);
 }