Vanessas Level modded

This commit is contained in:
GungHolo
2023-06-12 16:48:23 +02:00
parent 1161b7aef3
commit 39f6cda924
22 changed files with 8295 additions and 608 deletions

View File

@@ -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;