mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-03-22 17:54:26 -05:00
24 lines
536 B
C#
24 lines
536 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class InventoryManager : MonoBehaviour
|
|
{
|
|
//allItems array
|
|
public Item[] allItems;
|
|
|
|
//Item list
|
|
private List<Item> itemList;
|
|
public List<Item> ItemList{
|
|
get{ return itemList; }
|
|
set{ itemList = value; }
|
|
}
|
|
|
|
|
|
void Awake(){
|
|
//Gets Items in Resource Folder
|
|
allItems = Resources.LoadAll<Item>("ItemObjects");
|
|
itemList = new List<Item>(allItems);
|
|
}
|
|
}
|