projectEli/Assets/Inventory System/Scripts/UI/LinkedSlotUI.cs

27 lines
566 B
C#

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<SlotUI>());
}
}
// Update is called once per frame
void Update()
{
}
}
}