public void OnClickPay() { AudioManager.instance.Play(); ShopUI.instance.DoItemPay(myItem.GetAddType(), myItem.GetAddNum()); }
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 + ""; }