2025-05-08 15:38:46 +09:00
|
|
|
using Ookii.Dialogs;
|
2025-05-07 12:20:55 +09:00
|
|
|
using UnityEngine;
|
2025-05-08 15:38:46 +09:00
|
|
|
using UnityEngine.UI;
|
2025-05-07 12:20:55 +09:00
|
|
|
using XRLib.UI;
|
|
|
|
|
|
2025-05-20 16:25:58 +09:00
|
|
|
namespace Studio.UI
|
2025-05-07 12:20:55 +09:00
|
|
|
{
|
|
|
|
|
public class Panel_Authentication : PanelBase
|
|
|
|
|
{
|
2025-05-08 15:38:46 +09:00
|
|
|
private GameObject itemPrefab;
|
|
|
|
|
private RectTransform Info;
|
|
|
|
|
|
|
|
|
|
public Button Button_Add;
|
|
|
|
|
public Button Button_Save;
|
|
|
|
|
|
|
|
|
|
public override void AfterAwake()
|
|
|
|
|
{
|
|
|
|
|
itemPrefab = Resources.Load<GameObject>("Prefabs/UI/PRF_AuthenticationItem");
|
|
|
|
|
|
|
|
|
|
Button_Add.onClick.AddListener(AddItem);
|
|
|
|
|
Button_Save.onClick.AddListener(OnClickSave);
|
|
|
|
|
|
|
|
|
|
AddItem();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void AddItem()
|
|
|
|
|
{
|
|
|
|
|
GameObject item = Instantiate(itemPrefab, Info);
|
|
|
|
|
item.transform.SetSiblingIndex(Info.childCount - 2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void OnClickSave()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2025-05-07 12:20:55 +09:00
|
|
|
}
|
|
|
|
|
}
|