void Start() { player = GameObject.FindGameObjectWithTag(MyConst.Player); inventorySpace = player.GetComponent <InventorySystem>(); randomArmor = new ArmorItems(); randomWeapon = new WeaponItems(); }
public ArmorItems(ArmorItems orig) { SetItemName(orig.GetItemName()); SetItemRarity(orig.GetItemRarity()); SetItemType(orig.GetItemType()); SetArmorSlot(orig.GetArmorSlot()); SetArmorValue(orig.GetArmorValue()); }
public void AddArmorToInventory(ArmorItems randomdrop) { inventorySpace.Add(new ArmorItems(randomdrop)); if (MyConst.almir) { Debug.Log("Random Item has successfully been added!"); } itemLog.text += randomdrop.GetItemName() + "\n"; }
public void AddArmorToInventory(ArmorItems randomdrop) { inventorySpace.Add(new ArmorItems(randomdrop)); Debug.Log("Random Item has successfully been added!"); }