public void Ads() { if (ads) { return; } ads = true; Vector3 diff = adsPos.position - weapon.camera.transform.position; holder.position = holder.position - diff; prevFov = weapon.camera.fieldOfView; weapon.camera.fieldOfView = fov; weapon.weaponCamera.fieldOfView = fov; crosshair.Hide(); if (scopeObject != null) { scopeObject.SetActive(true); } look.XSensitivity /= fovMod; look.YSensitivity /= fovMod; }
public void Ads() { if (crosshair != null) { crosshair.Hide(); } //prevFov = camera.fieldOfView; //camera.fieldOfView = adsFov; if (animator != null) { animator.SetBool("Ads", true); } }