using System.Collections; using System.Collections.Generic; using UnityEngine; namespace SimpleInventorySystem { [RequireComponent(typeof(SlotUI))] public class LinkedSlotUI : MonoBehaviour { public SlotUI linkedSlot; // Start is called before the first frame update void Start() { if(linkedSlot != null) { //linkedSlot.LinkedSlots.Add(GetComponent()); } } // Update is called once per frame void Update() { } } }