暂时屏蔽执行逻辑

This commit is contained in:
shenjianxing 2024-12-31 16:17:48 +08:00
parent 2818818f03
commit c25830a670

View File

@ -16,7 +16,7 @@ namespace QFramework.Example
public Vector3 normalRot; public Vector3 normalRot;
public float nearTime; public float nearTime;
public float normalTime; public float normalTime;
public bool isNear = false; public bool isNear;
} }
public partial class UICameraSwitch : UIPanel public partial class UICameraSwitch : UIPanel
@ -60,30 +60,28 @@ namespace QFramework.Example
mData = uiData as UICameraSwitchData ?? new UICameraSwitchData(); mData = uiData as UICameraSwitchData ?? new UICameraSwitchData();
//if (mData.isNear)
//{
if (mData.isNear) // if (Near.isOn == false)
{ // {
if (Near.isOn == false) // Near.isOn = true;
{ // }
Near.isOn = true; // else
} // {
else // SetNear();
{ // }
SetNear(); //}
} //else
} //{
else // if (Far.isOn == false)
{ // {
if (Far.isOn == false) // Far.isOn = true;
{ // }
Far.isOn = true; // else
} // {
else // SetNormal();
{ // }
SetNormal(); //}
}
}
} }
protected override void OnShow() protected override void OnShow()