Example #1
0
 public void OnClickPay()
 {
     AudioManager.instance.Play();
     ShopUI.instance.DoItemPay(myItem.GetAddType(), myItem.GetAddNum());
 }
Example #2
0
    public void Init(ChargeItem item)
    {
        myItem = item;
        string spName = DataController.iconPathSkill + ItemManager.instance.GetItem((ItemID)item.GetAddType()).spriteName;

        icon.sprite = Resources.Load(spName, typeof(Sprite)) as Sprite;
        icon.SetNativeSize();
        txAddNum.text = "" + item.GetAddNum();
        txPrice.text  = item.price + "";
    }