void ZoomOut() { currentAimingMode = aimingMode.HipShooting; mainCamera.fieldOfView = zoomOutFOV; if(currentShootingMode == ShootingMode.SMG) { gunModel.localPosition = hipPosition; } if(currentShootingMode == ShootingMode.Sniper) { gunCamera.enabled = true; PUM_Script.DeactivateSniper(); } }
void ZoomIn() { currentAimingMode = aimingMode.Aiming; if(currentShootingMode == ShootingMode.SMG) { gunModel.localPosition = aimingPosition; mainCamera.fieldOfView = smgZoomInFOV; } if(currentShootingMode ==ShootingMode.Sniper) { gunCamera.enabled = false; PUM_Script.ActivateSniper(); mainCamera.fieldOfView = sniperZoomInFOV; } }