mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-25 21:10:57 +00:00
sphere zooming exception if on the right side of the screen
This commit is contained in:
parent
b9162ffd44
commit
a8a4490a68
@ -71,10 +71,14 @@ public class NetworkingSphere : MonoBehaviour
|
|||||||
|
|
||||||
//scroll
|
//scroll
|
||||||
if (Input.GetAxis("Mouse ScrollWheel") != 0)
|
if (Input.GetAxis("Mouse ScrollWheel") != 0)
|
||||||
|
{
|
||||||
|
// 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;
|
Camera.main.fieldOfView += Input.GetAxis("Mouse ScrollWheel") * 10f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void MoveSphere()
|
void MoveSphere()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user