Fixed Player Jump and Added Itemmanager

PlayerJump uses raycast to detect when to get jumps back
ItemManager Holds all scriptable Objects that are within resources
Added a resource folder
This commit is contained in:
Melbyj1125
2021-10-11 12:12:57 -05:00
parent c8e298f038
commit 122bf23b30
18 changed files with 83 additions and 30 deletions

View File

@@ -4,5 +4,15 @@ using UnityEngine;
public class InventoryManager : MonoBehaviour
{
public Item[] allItems;
private List<Item> itemList;
public List<Item> ItemList{
get{ return itemList; }
set{ itemList = value; }
}
void Awake(){
allItems = Resources.LoadAll<Item>("ItemObjects");
itemList = new List<Item>(allItems);
}
}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3f81b99cf16b831458726bf10a114803
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: