projectEli/Assets/Inventory System/Scripts/UI/StorageWindowUI.cs
2023-01-15 03:39:47 -08:00

27 lines
634 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace SimpleInventorySystem
{
public class StorageWindowUI : MonoBehaviour
{
public GameObject StorageContainer;
[HideInInspector] public ItemUI itemUI;
public DragWindowUI dragWindowUI;
// Start is called before the first frame update
void Start()
{
if(dragWindowUI != null)
{
dragWindowUI.title.text = itemUI.itemName;
}
}
public void SetItem(ItemUI itemUI)
{
this.itemUI = itemUI;
}
}
}