50 lines
794 B
C#
50 lines
794 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using QFramework;
|
|
|
|
namespace QFramework.Example
|
|
{
|
|
// Generate Id:d11b81ea-59ca-45c1-99ce-7d8386a770e3
|
|
public partial class UICameraSwitch
|
|
{
|
|
public const string Name = "UICameraSwitch";
|
|
|
|
[SerializeField]
|
|
public UnityEngine.UI.Toggle Near;
|
|
[SerializeField]
|
|
public UnityEngine.UI.Toggle Far;
|
|
|
|
private UICameraSwitchData mPrivateData = null;
|
|
|
|
protected override void ClearUIComponents()
|
|
{
|
|
Near = null;
|
|
Far = null;
|
|
|
|
mData = null;
|
|
}
|
|
|
|
public UICameraSwitchData Data
|
|
{
|
|
get
|
|
{
|
|
return mData;
|
|
}
|
|
}
|
|
|
|
UICameraSwitchData mData
|
|
{
|
|
get
|
|
{
|
|
return mPrivateData ?? (mPrivateData = new UICameraSwitchData());
|
|
}
|
|
set
|
|
{
|
|
mUIData = value;
|
|
mPrivateData = value;
|
|
}
|
|
}
|
|
}
|
|
}
|