50 lines
762 B
C#
50 lines
762 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using QFramework;
|
|
|
|
namespace QFramework.Example
|
|
{
|
|
// Generate Id:2336a2ee-2104-47d2-8db9-934f895c54fa
|
|
public partial class UIBtns
|
|
{
|
|
public const string Name = "UIBtns";
|
|
|
|
[SerializeField]
|
|
public RectTransform BtnContent;
|
|
[SerializeField]
|
|
public UnityEngine.UI.Button BtnPrefab;
|
|
|
|
private UIBtnsData mPrivateData = null;
|
|
|
|
protected override void ClearUIComponents()
|
|
{
|
|
BtnContent = null;
|
|
BtnPrefab = null;
|
|
|
|
mData = null;
|
|
}
|
|
|
|
public UIBtnsData Data
|
|
{
|
|
get
|
|
{
|
|
return mData;
|
|
}
|
|
}
|
|
|
|
UIBtnsData mData
|
|
{
|
|
get
|
|
{
|
|
return mPrivateData ?? (mPrivateData = new UIBtnsData());
|
|
}
|
|
set
|
|
{
|
|
mUIData = value;
|
|
mPrivateData = value;
|
|
}
|
|
}
|
|
}
|
|
}
|