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

25 lines
539 B
C#
Raw Normal View History

2023-01-15 11:39:47 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace SimpleInventorySystem
{
2023-03-15 11:43:15 +00:00
public class StorageWindowUI : WindowUI
2023-01-15 11:39:47 +00:00
{
public GameObject StorageContainer;
// Start is called before the first frame update
void Start()
{
if(dragWindowUI != null)
{
2023-03-15 11:43:15 +00:00
dragWindowUI.title.text = ItemUI.itemName;
2023-01-15 11:39:47 +00:00
}
}
public void SetItem(ItemUI itemUI)
{
2023-03-15 11:43:15 +00:00
this.ItemUI = itemUI;
2023-01-15 11:39:47 +00:00
}
}
}