优化放大后视角锁定问题

This commit is contained in:
高国正 2023-10-10 15:19:04 +08:00
parent 2ddf0f1155
commit 1d7b8c78d9
4 changed files with 10 additions and 2 deletions

Binary file not shown.

View File

@ -399,6 +399,10 @@ public class CameraRT : MonoBehaviour
Vector3 oldMousePos; Vector3 oldMousePos;
void Update() void Update()
{ {
//Debug.Log("mask_img.activeSelf: " + mask_img.activeSelf +
// "\nGameManager.Inst.isLoading: " + !GameManager.Inst.isLoading +
// "\nauto_move: " + auto_move +
// "\nautoRotate: " + !autoRotate);
if (mask_img.activeSelf) return; if (mask_img.activeSelf) return;
else if (!GameManager.Inst.isLoading) return; else if (!GameManager.Inst.isLoading) return;
BoolMonitor.Value = ismove(); BoolMonitor.Value = ismove();

View File

@ -951,7 +951,7 @@ public class ClickEvent : MonoBehaviour
public void Zoomin(GameObject cabine) public void Zoomin(GameObject cabine)
{ {
ExtendedFlycam.Inst.CameraRtDisable(); ExtendedFlycam.Inst.CameraRtDisable();
ExtendedFlycam.Inst.QieHuan(CabinetUIManager.Instance.current_menu); ExtendedFlycam.Inst.QieHuan(CabinetUIManager.Instance.current_menu, 99);
//GameManager.Inst.magnifyState = true; //GameManager.Inst.magnifyState = true;
TransparentGlowManage.Inst.is_magnify = true; TransparentGlowManage.Inst.is_magnify = true;

View File

@ -442,6 +442,10 @@ public class ExtendedFlycam : MonoBehaviour
{ {
QuanJing(); QuanJing();
} }
else if (index == 99)
{
return;
}
else else
{ {
NiaoKan(); NiaoKan();