59 lines
1.0 KiB
C#
59 lines
1.0 KiB
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using QFramework;
|
|
|
|
namespace QFramework.Example
|
|
{
|
|
// Generate Id:b1c63efb-a7a0-4270-8cd9-08f25e4d69b5
|
|
public partial class UIInstruction
|
|
{
|
|
public const string Name = "UIInstruction";
|
|
|
|
[SerializeField]
|
|
public UnityEngine.UI.Toggle Training;
|
|
[SerializeField]
|
|
public UnityEngine.UI.Toggle Operation;
|
|
[SerializeField]
|
|
public RectTransform TrainContent;
|
|
[SerializeField]
|
|
public UnityEngine.UI.Image OperationContent;
|
|
[SerializeField]
|
|
public UnityEngine.UI.Button ConfirmBtn;
|
|
|
|
private UIInstructionData mPrivateData = null;
|
|
|
|
protected override void ClearUIComponents()
|
|
{
|
|
Training = null;
|
|
Operation = null;
|
|
TrainContent = null;
|
|
OperationContent = null;
|
|
ConfirmBtn = null;
|
|
|
|
mData = null;
|
|
}
|
|
|
|
public UIInstructionData Data
|
|
{
|
|
get
|
|
{
|
|
return mData;
|
|
}
|
|
}
|
|
|
|
UIInstructionData mData
|
|
{
|
|
get
|
|
{
|
|
return mPrivateData ?? (mPrivateData = new UIInstructionData());
|
|
}
|
|
set
|
|
{
|
|
mUIData = value;
|
|
mPrivateData = value;
|
|
}
|
|
}
|
|
}
|
|
}
|