44 lines
869 B
C#
44 lines
869 B
C#
|
using UnityEngine.UI;
|
||
|
using TMPro;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace HK
|
||
|
{
|
||
|
public class Product5ConfirmItem : UIItemBase
|
||
|
{
|
||
|
[SerializeField] private TMP_Text txtPrice;
|
||
|
[SerializeField] private Button btnConfirm;
|
||
|
|
||
|
public override void OnInit()
|
||
|
{
|
||
|
base.OnInit();
|
||
|
#region AutoGen_Init
|
||
|
|
||
|
txtPrice = GetValue<TMP_Text>("txtPrice");
|
||
|
btnConfirm = GetValue<Button>("btnConfirm");
|
||
|
|
||
|
btnConfirm.onClick.AddListener(OnClickbtnConfirm);
|
||
|
|
||
|
#endregion
|
||
|
}
|
||
|
|
||
|
#region AutoGen_Method
|
||
|
|
||
|
private void OnClickbtnConfirm() {}
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
public override void OnDispose()
|
||
|
{
|
||
|
base.OnDispose();
|
||
|
#region AutoGen_Dispose
|
||
|
|
||
|
btnConfirm.onClick.RemoveListener(OnClickbtnConfirm);
|
||
|
|
||
|
txtPrice = null;
|
||
|
btnConfirm = null;
|
||
|
|
||
|
#endregion
|
||
|
}
|
||
|
}
|
||
|
}
|