/** * GETTER AND SETTER *********************/ public void Set(Inventory inv) { _weight = inv.weight; _maxWeight = inv.maxWeight; money = inv.money; _items = inv._items; _equipment.Set(inv._equipment); }
public void Set(Inventory inv) { money = inv.money; _items = inv.items; }
public void SetInventories(Inventory buyer, Shop seller) { if (buyer == null || seller == null) throw new System.NullReferenceException("buyer or seller inventory set to NULL!"); _buyer = buyer; _seller = seller; userMode = EShopMode.unset; ChangeModeTo(EShopMode.buy); UIbuyerMoney.Set(_buyer.G, _buyer.K, _buyer.T); SetUpPage(0); }
void Awake() { _ec = GetComponent<EntityController>(); _inv = (_ec) ? _ec.inventory : null; _shop = GetComponent<Shop>(); if (_shop != null) _ec.shopID = _shop.shopID; }