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