38 lines
846 B
C#
38 lines
846 B
C#
using Ookii.Dialogs;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using XRLib.UI;
|
|
|
|
namespace Studio.UI
|
|
{
|
|
public class Panel_Authentication : PanelBase
|
|
{
|
|
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()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|