58 lines
1.5 KiB
C#
58 lines
1.5 KiB
C#
|
using UnityEngine.UI;
|
||
|
using TMPro;
|
||
|
|
||
|
namespace HK
|
||
|
{
|
||
|
public class StartUI : UIBase
|
||
|
{
|
||
|
public Button btnNext;
|
||
|
public Button btnSimplifiedChinese;
|
||
|
public Button btnTraditionalChinese;
|
||
|
public Button btnEnglish;
|
||
|
|
||
|
public override void OnInit()
|
||
|
{
|
||
|
base.OnInit();
|
||
|
#region AutoGen_Init
|
||
|
|
||
|
btnNext = GetValue<Button>("btnNext");
|
||
|
btnSimplifiedChinese = GetValue<Button>("btnSimplifiedChinese");
|
||
|
btnTraditionalChinese = GetValue<Button>("btnTraditionalChinese");
|
||
|
btnEnglish = GetValue<Button>("btnEnglish");
|
||
|
|
||
|
btnNext.onClick.AddListener(OnClickbtnNext);
|
||
|
btnSimplifiedChinese.onClick.AddListener(OnClickbtnSimplifiedChinese);
|
||
|
btnTraditionalChinese.onClick.AddListener(OnClickbtnTraditionalChinese);
|
||
|
btnEnglish.onClick.AddListener(OnClickbtnEnglish);
|
||
|
|
||
|
#endregion
|
||
|
}
|
||
|
|
||
|
#region AutoGen_Method
|
||
|
|
||
|
private void OnClickbtnNext() {}
|
||
|
private void OnClickbtnSimplifiedChinese() {}
|
||
|
private void OnClickbtnTraditionalChinese() {}
|
||
|
private void OnClickbtnEnglish() {}
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
public override void OnDispose()
|
||
|
{
|
||
|
base.OnDispose();
|
||
|
#region AutoGen_Dispose
|
||
|
|
||
|
btnNext.onClick.RemoveListener(OnClickbtnNext);
|
||
|
btnSimplifiedChinese.onClick.RemoveListener(OnClickbtnSimplifiedChinese);
|
||
|
btnTraditionalChinese.onClick.RemoveListener(OnClickbtnTraditionalChinese);
|
||
|
btnEnglish.onClick.RemoveListener(OnClickbtnEnglish);
|
||
|
|
||
|
btnNext = null;
|
||
|
btnSimplifiedChinese = null;
|
||
|
btnTraditionalChinese = null;
|
||
|
btnEnglish = null;
|
||
|
|
||
|
#endregion
|
||
|
}
|
||
|
}
|
||
|
}
|