84 lines
2.7 KiB
C#
84 lines
2.7 KiB
C#
using UnityEngine.UI;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace HK
|
|
{
|
|
public class ProductUI : UIBase
|
|
{
|
|
[SerializeField] private Toggle togStepDesign;
|
|
[SerializeField] private Toggle togStepText;
|
|
[SerializeField] private Toggle togStepLayout;
|
|
[SerializeField] private RawImage rawShow;
|
|
[SerializeField] private UpMenuItem goUpMenu;
|
|
[SerializeField] private Product1ColorItem Product1Color;
|
|
[SerializeField] private Product2StickerItem Product2Sticker;
|
|
[SerializeField] private Product3TextItem Product3Text;
|
|
[SerializeField] private Product4LineItem Product4Line;
|
|
[SerializeField] private Product5ConfirmItem Product5Confirm;
|
|
|
|
public override void OnInit()
|
|
{
|
|
base.OnInit();
|
|
|
|
#region AutoGen_Init
|
|
|
|
togStepDesign = GetValue<Toggle>("togStepDesign");
|
|
togStepText = GetValue<Toggle>("togStepText");
|
|
togStepLayout = GetValue<Toggle>("togStepLayout");
|
|
rawShow = GetValue<RawImage>("rawShow");
|
|
goUpMenu = GetValue<UpMenuItem>("goUpMenu");
|
|
Product1Color = GetValue<Product1ColorItem>("Product1Color");
|
|
Product2Sticker = GetValue<Product2StickerItem>("Product2Sticker");
|
|
Product3Text = GetValue<Product3TextItem>("Product3Text");
|
|
Product4Line = GetValue<Product4LineItem>("Product4Line");
|
|
Product5Confirm = GetValue<Product5ConfirmItem>("Product5Confirm");
|
|
|
|
togStepDesign.onValueChanged.AddListener(OnValueChangedtogStepDesign);
|
|
togStepText.onValueChanged.AddListener(OnValueChangedtogStepText);
|
|
togStepLayout.onValueChanged.AddListener(OnValueChangedtogStepLayout);
|
|
|
|
#endregion
|
|
}
|
|
|
|
#region AutoGen_Method
|
|
|
|
private void OnValueChangedtogStepDesign(bool b)
|
|
{
|
|
}
|
|
|
|
private void OnValueChangedtogStepText(bool b)
|
|
{
|
|
}
|
|
|
|
private void OnValueChangedtogStepLayout(bool b)
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
|
|
public override void OnDispose()
|
|
{
|
|
base.OnDispose();
|
|
|
|
#region AutoGen_Dispose
|
|
|
|
togStepDesign.onValueChanged.RemoveListener(OnValueChangedtogStepDesign);
|
|
togStepText.onValueChanged.RemoveListener(OnValueChangedtogStepText);
|
|
togStepLayout.onValueChanged.RemoveListener(OnValueChangedtogStepLayout);
|
|
|
|
togStepDesign = null;
|
|
togStepText = null;
|
|
togStepLayout = null;
|
|
rawShow = null;
|
|
goUpMenu = null;
|
|
Product1Color = null;
|
|
Product2Sticker = null;
|
|
Product3Text = null;
|
|
Product4Line = null;
|
|
Product5Confirm = null;
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
} |