예제 #1
0
 /**
  * GETTER AND SETTER
  *********************/
 public void Set(Inventory inv)
 {
     _weight = inv.weight;
     _maxWeight = inv.maxWeight;
     money = inv.money;
     _items = inv._items;
     _equipment.Set(inv._equipment);
 }
예제 #2
0
 public void Set(Inventory inv)
 {
     money = inv.money;
     _items = inv.items;
 }
예제 #3
0
 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);
 }
예제 #4
0
        void Awake()
        {
            _ec = GetComponent<EntityController>();
            _inv = (_ec) ? _ec.inventory : null;
            _shop = GetComponent<Shop>();

            if (_shop != null)
                _ec.shopID = _shop.shopID;
        }