Updated CameraMove

This commit is contained in:
MrGadget1024 2023-03-06 08:41:47 -05:00
parent e6029c6e41
commit b76a9e2634

View File

@ -18,10 +18,10 @@ enum RotationAxes : byte { MouseXAndY, MouseX, MouseY }
void LateUpdate()
{
// this doesn't seem to work for allowing button clicks
if (EventSystem.current.IsPointerOverGameObject())
return;
//if (EventSystem.current.IsPointerOverGameObject())
// return;
// workaround for above so can hold shift to click buttons
// workaround for above - must hold LeftShift to manipulate camera
if (!Input.GetKey(KeyCode.LeftShift))
return;