Implemented Item Scripts into objects

Implemented Ragdoll kinda
There are some issues with getting hit while ragdolling that need to be
fixed
Adjusted Dash
Dash still needs some adjustments before being fully implemented
This commit is contained in:
Melbyj1125
2021-10-25 03:38:56 -05:00
parent cc99ababff
commit 702bb555f0
33 changed files with 290 additions and 319 deletions

View File

@@ -21,7 +21,7 @@ public class PlayerInventory : MonoBehaviour
if(!items.Contains(item) && ableToAdd){
Debug.Log("Item Added");
items.Add(item);
item.Equip(pStats);
item.Equip(pStats, this.gameObject);
}
else if(!ableToAdd && !items.Contains(item)){
Debug.Log("Item Cannot Be Added");
@@ -42,7 +42,7 @@ public class PlayerInventory : MonoBehaviour
public void RemoveItem(Item item){
if(items.Remove(item)){
item.Unequip(pStats);
item.Unequip(pStats, this.gameObject);
}
}