相机视角的修改角度
This commit is contained in:
parent
bea43936f3
commit
da67044825
@ -136,7 +136,7 @@ public class PlayerMovement_Jpystick : MonoBehaviour, IDragHandler
|
|||||||
}
|
}
|
||||||
public void HandleViewSwipe()
|
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();
|
cameraControl.ResetTargetOffsets();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user