Exemple #1
0
 void Start()
 {
     player         = GameObject.FindGameObjectWithTag(MyConst.Player);
     inventorySpace = player.GetComponent <InventorySystem>();
     randomArmor    = new ArmorItems();
     randomWeapon   = new WeaponItems();
 }
Exemple #2
0
 public ArmorItems(ArmorItems orig)
 {
     SetItemName(orig.GetItemName());
     SetItemRarity(orig.GetItemRarity());
     SetItemType(orig.GetItemType());
     SetArmorSlot(orig.GetArmorSlot());
     SetArmorValue(orig.GetArmorValue());
 }
Exemple #3
0
 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!");
 }