mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-25 13:00:59 +00:00
stupid scroll reimplemented
This commit is contained in:
parent
ddf3407851
commit
c08af46d21
@ -53,7 +53,7 @@ public class NetworkingSphere : MonoBehaviour
|
|||||||
transform.Rotate(Vector3.one * Time.deltaTime * rotationSpeed);
|
transform.Rotate(Vector3.one * Time.deltaTime * rotationSpeed);
|
||||||
}
|
}
|
||||||
|
|
||||||
//when right btn clicked, call the chnge rotation
|
//when right btn clicked, call MoveSphere
|
||||||
if (Input.GetMouseButtonDown(1))
|
if (Input.GetMouseButtonDown(1))
|
||||||
{
|
{
|
||||||
dragging = true;
|
dragging = true;
|
||||||
@ -68,6 +68,12 @@ public class NetworkingSphere : MonoBehaviour
|
|||||||
{
|
{
|
||||||
MoveSphere();
|
MoveSphere();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//scroll
|
||||||
|
if (Input.GetAxis("Mouse ScrollWheel") != 0)
|
||||||
|
{
|
||||||
|
Camera.main.fieldOfView += Input.GetAxis("Mouse ScrollWheel") * 10f;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MoveSphere()
|
void MoveSphere()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user