mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-05 09:04:49 -05:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
8
Assets/Scripts/PlayerScripts/ItemScripts/Resources.meta
Normal file
8
Assets/Scripts/PlayerScripts/ItemScripts/Resources.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3f81b99cf16b831458726bf10a114803
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user