Fixed zoom bug
This commit is contained in:
parent
34099af405
commit
6176d81d58
|
@ -26,6 +26,11 @@ public class WeaponZoom : MonoBehaviour
|
||||||
_fovNormal = _camera.m_Lens.FieldOfView;
|
_fovNormal = _camera.m_Lens.FieldOfView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnDisable()
|
||||||
|
{
|
||||||
|
_camera.m_Lens.FieldOfView = _fovNormal;
|
||||||
|
}
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
if (!Mouse.current.rightButton.wasPressedThisFrame) return;
|
if (!Mouse.current.rightButton.wasPressedThisFrame) return;
|
||||||
|
|
Loading…
Reference in New Issue