diff --git a/Assets/Scripts/UI/UICameraSwitch.cs b/Assets/Scripts/UI/UICameraSwitch.cs index 7890ac3b..532f5fe4 100644 --- a/Assets/Scripts/UI/UICameraSwitch.cs +++ b/Assets/Scripts/UI/UICameraSwitch.cs @@ -16,7 +16,7 @@ namespace QFramework.Example public Vector3 normalRot; public float nearTime; public float normalTime; - public bool isNear = false; + public bool isNear; } public partial class UICameraSwitch : UIPanel @@ -60,30 +60,28 @@ namespace QFramework.Example mData = uiData as UICameraSwitchData ?? new UICameraSwitchData(); - - - if (mData.isNear) - { - if (Near.isOn == false) - { - Near.isOn = true; - } - else - { - SetNear(); - } - } - else - { - if (Far.isOn == false) - { - Far.isOn = true; - } - else - { - SetNormal(); - } - } + //if (mData.isNear) + //{ + // if (Near.isOn == false) + // { + // Near.isOn = true; + // } + // else + // { + // SetNear(); + // } + //} + //else + //{ + // if (Far.isOn == false) + // { + // Far.isOn = true; + // } + // else + // { + // SetNormal(); + // } + //} } protected override void OnShow()