Files
XRLib/Assets/Scripts/UVC/UI/Window/LibraryWindow.cs

44 lines
889 B
C#
Raw Normal View History

#nullable enable
using System.Collections.Generic;
using UnityEngine;
using UVC.UI.List;
namespace UVC.UI.Window
{
public class LibraryWindow : MonoBehaviour
{
[SerializeField]
private PrefabGrid prefabGrid;
protected void Awake()
{
if (prefabGrid == null)
{
prefabGrid = GetComponentInChildren<PrefabGrid>();
}
if (prefabGrid == null)
{
Debug.LogError("InfiniteScroll component is not assigned or found in Children.");
return;
}
}
public void SetData(List<PrefabGridItemData> list)
{
prefabGrid?.SetupData(list);
}
/// <summary>
/// 닫기
/// </summary>
public void Close()
{
gameObject.SetActive(false);
}
}
}