mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-03-22 09:44:15 -05:00
PlayerJump uses raycast to detect when to get jumps back ItemManager Holds all scriptable Objects that are within resources Added a resource folder
19 lines
419 B
C#
19 lines
419 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
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);
|
|
}
|
|
}
|