mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 18:04:27 -05:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user