36 lines
972 B
C#
36 lines
972 B
C#
#nullable enable
|
|
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UVC.UI.List.Accordion;
|
|
|
|
namespace UVC.UI.Window
|
|
{
|
|
/// <summary>
|
|
/// 아코디언 리스트(<see cref="AccordionList"/>)를 포함하는 간단한 컨테이너 윈도우.
|
|
/// 외부에서 전달된 데이터로 내부 리스트를 구성합니다.
|
|
/// </summary>
|
|
public class AccordionWindow : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private AccordionList list = default!;
|
|
|
|
private void Awake()
|
|
{
|
|
if (list == null)
|
|
{
|
|
Debug.LogWarning("AccordionWindow: list is not assigned.");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 내부 <see cref="AccordionList"/>에 데이터를 설정합니다.
|
|
/// </summary>
|
|
/// <param name="data">아코디언 루트 데이터.</param>
|
|
public void SetData(AccordionData data)
|
|
{
|
|
list!.SetData(data);
|
|
}
|
|
}
|
|
}
|