50 lines
1.0 KiB
C#
50 lines
1.0 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using UnityEngine.UI;
|
||
using UnityEngine;
|
||
using TMPro;
|
||
|
||
namespace Stary.Evo
|
||
{
|
||
public class UITestView : UIView
|
||
{
|
||
#region 控件绑定变量声明,自动生成请勿手改
|
||
#pragma warning disable 0649
|
||
[ControlBinding]
|
||
private Button ButtonClose;
|
||
|
||
#pragma warning restore 0649
|
||
#endregion
|
||
|
||
public override void OnInit(UIControlData uIControlData, UIViewController controller)
|
||
{
|
||
base.OnInit(uIControlData, controller);
|
||
|
||
ButtonClose.AddClick(() =>
|
||
{
|
||
UIManager.Instance.Close(this);
|
||
});
|
||
}
|
||
|
||
public override void OnOpen(object userData)
|
||
{
|
||
base.OnOpen(userData);
|
||
}
|
||
|
||
public override void OnAddListener()
|
||
{
|
||
base.OnAddListener();
|
||
}
|
||
|
||
public override void OnRemoveListener()
|
||
{
|
||
base.OnRemoveListener();
|
||
}
|
||
|
||
public override void OnClose()
|
||
{
|
||
base.OnClose();
|
||
}
|
||
}
|
||
}
|