void Start() { Cursor.visible = false; postVolume = Camera.main.GetComponentInChildren <PostProcessVolume>(); postProfile = postVolume.profile; ui = GetComponent <InterfaceAnimator>(); anim = this.GetComponent <Animator>(); input = GetComponent <MovementInput>(); originalFOV = thirdPersonCamera.m_Lens.FieldOfView; originalCameraOffset = thirdPersonCamera.GetRig(1).GetCinemachineComponent <CinemachineComposer>().m_TrackedObjectOffset; }
private void Start() { Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; volume.profile.TryGet(out vignette); ui = GetComponent <InterfaceAnimator>(); anim = GetComponent <Animator>(); input = GetComponent <KingdomHeartsShotLockMovementInput>(); originFOV = thirdPersonCamera.m_Lens.FieldOfView; originalLCameraOffset = thirdPersonCamera.GetRig(1).GetCinemachineComponent <CinemachineComposer>() .m_TrackedObjectOffset; }