mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-03-23 10:14:27 -05:00
21 lines
459 B
C#
21 lines
459 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);
|
|
}
|
|
}
|