Esempio n. 1
0
	public void updateItems(PickupProperties item){
		
		myItems.Add (item);
        updateAtk(getNodeAtk() + item.attackModifier());
        updateDef(getNodeDef() + item.defenseModifier());

    }
Esempio n. 2
0
 public void effectItemsDur()
 {
     for (int i = 0; i < myItems.Count; i++)
     {
         PickupProperties curr_item = (PickupProperties)myItems [i];
         curr_item.useDurability();
         if (curr_item.durability() <= 0)
         {
             updateAtk(getNodeAtk() - curr_item.attackModifier());
             updateDef(getNodeDef() - curr_item.defenseModifier());
             Destroy(curr_item.gameObject);
             myItems.Remove(curr_item);
         }
     }
 }
Esempio n. 3
0
 public void updateItems(PickupProperties item)
 {
     myItems.Add(item);
     updateAtk(getNodeAtk() + item.attackModifier());
     updateDef(getNodeDef() + item.defenseModifier());
 }