public virtual bool getExtent(ItemLibrary items) { ItemInfo info = new ItemInfo (); if (items.getItemInfo (info, item.id)) { extentMax = Vector3.one * info.size; extentMin = Vector3.one * (-info.size); return true; } else return false; }
public void createFromItem(InventoryItem keyItem, ItemLibrary items) { //this fills the "item" variable in this part item = new InventoryItem (); item.setInvItem (keyItem.id, keyItem.quantity); nodes = items.getItemAttachments (keyItem.id); baseStats = items.getItemStats (keyItem.id); currentPower = 0.0f; currentHealth = baseStats.stability; powerIn = 0.0f; //we will take this if needed powerOut = 0.0f; //we will put power here if we have extra type = items.getItemType (keyItem.id); Debug.Log ("LLLAAAMMAAASS"); }