The simplest way I fixed it was by adding this to the bottom of the script.
void OnDisable()
{
FPSCamera.fieldOfView = zoomoutFOV;
}
There doesn’t need to be a private before the void.
The simplest way I fixed it was by adding this to the bottom of the script.
void OnDisable()
{
FPSCamera.fieldOfView = zoomoutFOV;
}
There doesn’t need to be a private before the void.