Skip to content

Commit ad72ed5

Browse files
authored
Update ZoomWithMouse.cs
1 parent cbe01f6 commit ad72ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripts/Camera/ZoomWithMouse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void Update()
1313

1414
if (mouseScroll!=0)
1515
{
16-
transform.Translate(transform.forward * zoomSpeed * Time.deltaTime, Space.Self);
16+
transform.Translate(transform.forward * mouseScroll * zoomSpeed * Time.deltaTime, Space.Self);
1717
}
1818
}
1919
}

0 commit comments

Comments
 (0)