mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-24 04:20:58 +00:00
sphere zooming exception if on the right side of the screen
This commit is contained in:
parent
b9162ffd44
commit
a8a4490a68
@ -72,7 +72,11 @@ public class NetworkingSphere : MonoBehaviour
|
||||
//scroll
|
||||
if (Input.GetAxis("Mouse ScrollWheel") != 0)
|
||||
{
|
||||
Camera.main.fieldOfView += Input.GetAxis("Mouse ScrollWheel") * 10f;
|
||||
// if (Camera.main.ScreenToViewportPoint(Input.mousePosition) < new Vector3(1,1,1))
|
||||
if (Camera.main.ScreenToViewportPoint(Input.mousePosition).x < 1)
|
||||
{
|
||||
Camera.main.fieldOfView += Input.GetAxis("Mouse ScrollWheel") * 10f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user