시작화면 모달 수정
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using XRLib.UI;
|
||||
@@ -7,11 +9,14 @@ namespace XED.UI
|
||||
public class Panel_AppSetting : PanelBase
|
||||
{
|
||||
private GameObject itemPrefab;
|
||||
private List<GameObject> items = new();
|
||||
private RectTransform Info;
|
||||
|
||||
public Button Button_Add;
|
||||
public Button Button_Save;
|
||||
|
||||
public Action onRemove;
|
||||
|
||||
public override void AfterAwake()
|
||||
{
|
||||
itemPrefab = Resources.Load<GameObject>("Prefabs/UI/PRF_AppSettingItem");
|
||||
@@ -26,16 +31,21 @@ namespace XED.UI
|
||||
{
|
||||
GameObject item = Instantiate(itemPrefab, Info);
|
||||
item.transform.SetSiblingIndex(Info.childCount - 2);
|
||||
items.Add(item);
|
||||
}
|
||||
|
||||
private void Init()
|
||||
{
|
||||
foreach (GameObject item in items)
|
||||
{
|
||||
Destroy(item);
|
||||
}
|
||||
items.Clear();
|
||||
}
|
||||
|
||||
private void OnClickSave()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Open(bool isOpen)
|
||||
{
|
||||
SetActive(isOpen);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user