This commit is contained in:
Patrice Vignola 2015-08-14 17:25:52 -04:00
commit 50cd8d1014

View File

@ -53,7 +53,7 @@ public class NetworkingSphere : MonoBehaviour
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))
{
dragging = true;
@ -68,6 +68,12 @@ public class NetworkingSphere : MonoBehaviour
{
MoveSphere();
}
//scroll
if (Input.GetAxis("Mouse ScrollWheel") != 0)
{
Camera.main.fieldOfView += Input.GetAxis("Mouse ScrollWheel") * 10f;
}
}
void MoveSphere()