private void OnMouseDown() { ItemMaster _itemMaster; int _r = Random.Range(0, 2); int _itemcode; if (_r == 0) { _itemcode = 10001; _itemMaster = ItemInfo.ins.Get_WearItem(10001); } else { _itemcode = 10101; _itemMaster = ItemInfo.ins.Get_WeaponItem(10101); } //위의 아이템 지급... ItemOwner _itemOwner = new ItemOwner(_itemcode, _itemMaster); playerData.AddItem(_itemOwner); string _msg = ""; List <ItemOwner> _list = playerData.listOwnerItem; for (int i = 0, imax = _list.Count; i < imax; i++) { _msg += _list[i].itemData.name + "\n"; } textListOwner.text = _msg; }
public void UpgradeItem(ItemOwner _item) { _item.UgradeItem(); }
public void AddItem(ItemOwner _item) { listOwnerItem.Add(_item); }