相机视角的修改角度

This commit is contained in:
杨号敬 2024-12-27 11:11:26 +08:00
parent bea43936f3
commit da67044825

View File

@ -136,7 +136,7 @@ public class PlayerMovement_Jpystick : MonoBehaviour, IDragHandler
}
public void HandleViewSwipe()
{
if (Mathf.Abs(mainCamera.transform.eulerAngles.x - transform.eulerAngles.x) < 270 && Mathf.Abs(mainCamera.transform.eulerAngles.x - transform.eulerAngles.x) > 90)
if (Mathf.Abs(mainCamera.transform.eulerAngles.x - transform.eulerAngles.x) < 260 && Mathf.Abs(mainCamera.transform.eulerAngles.x - transform.eulerAngles.x) > 100)
{
cameraControl.ResetTargetOffsets();
}