mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-24 03:14:39 -05:00
Merge branch 'UI-Prototypes'
-Merged in better ground check -Merged in wallrun prototype
This commit is contained in:
@@ -16,6 +16,14 @@ public class PlayerInventory : MonoBehaviour
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool AddSpecialItem<T>(T itemCandidate) { // Unless we don't want the four special items to be handled by inventory/inventory manager?
|
||||
if (itemCandidate is Item) {
|
||||
items.Add(itemCandidate as Item);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public bool RemoveItem(Item item){
|
||||
if(items.Remove(item)){
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user