Vanessas Level modded
This commit is contained in:
@@ -4,11 +4,11 @@ using UnityEngine;
|
||||
|
||||
public class InventoryBasic : MonoBehaviour
|
||||
{
|
||||
private List<GameObject> items;
|
||||
private LinkedList<GameObject> items;
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
items = new List<GameObject>();
|
||||
items = new LinkedList<GameObject>();
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
@@ -23,7 +23,7 @@ public class InventoryBasic : MonoBehaviour
|
||||
{
|
||||
case "Item":
|
||||
other.gameObject.SetActive(false);
|
||||
items.Add(other.gameObject);
|
||||
items.AddFirst(other.gameObject);
|
||||
Debug.Log("Pickup: Take " + other.gameObject.name);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user