27 lines
634 B
C#
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|