46 lines
865 B
C#
46 lines
865 B
C#
using UnityEngine.UI;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace HK.FUJIFILM
|
|
{
|
|
public class HomeUI : UIBase
|
|
{
|
|
[SerializeField] private Button btnStart;
|
|
|
|
public override void OnInit()
|
|
{
|
|
base.OnInit();
|
|
|
|
#region AutoGen_Init
|
|
|
|
btnStart = GetValue<Button>("btnStart");
|
|
|
|
btnStart.onClick.AddListener(OnClickbtnStart);
|
|
|
|
#endregion
|
|
}
|
|
|
|
#region AutoGen_Method
|
|
|
|
private void OnClickbtnStart()
|
|
{
|
|
UIManager.Instance.ShowUI(nameof(TermAndConditionsUI), this);
|
|
}
|
|
|
|
#endregion
|
|
|
|
public override void OnDispose()
|
|
{
|
|
base.OnDispose();
|
|
|
|
#region AutoGen_Dispose
|
|
|
|
btnStart.onClick.RemoveListener(OnClickbtnStart);
|
|
|
|
btnStart = null;
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
} |