HAARFTE/Assets/DemoGame/GameScript/Hotfix/UI/Logic/BasicInformationUI.cs

62 lines
1.5 KiB
C#
Raw Normal View History

2024-11-28 23:50:38 +08:00
using System;
using UnityEngine.UI;
namespace ZC
2024-11-07 23:17:41 +08:00
{
2024-11-28 23:50:38 +08:00
public enum BasicInformationUIActionType
{
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
穿,
,
,
,
退,
,
,
,
,
,
,
,
,
,
,
}
2024-11-07 23:17:41 +08:00
[UIType(UIType.BasicInformationUI)]
public class BasicInformationUI : UIBase
{
2024-11-28 23:50:38 +08:00
public Action<BasicInformationUIActionType> Action_TianXie;
public Action Action_Submit;
private Button btn_Submit;
public override void Init()
{
base.Init();
btn_Submit = GetValue<Button>("btn_Submit");
2024-11-28 23:50:38 +08:00
btn_Submit.onClick.AddListener(() => { Action_Submit?.Invoke(); });
}
public void SetData(Action<BasicInformationUIActionType> tianxie, Action action)
{
Action_TianXie = tianxie;
Action_Submit = action;
}
2024-11-07 23:17:41 +08:00
}
}