private void SwitchToPlayer() { playerCamera.enabled = true; playerAudioListener.enabled = true; cameraRig.active = false; scenicCamera.enabled = false; scenicAudioListener.enabled = false; player.SetPlayerMovementLock(false); }
public virtual void ToggleState(bool enable) { player.SetPlayerMovementLock(enable); player.SetCameraState(!enable); triggerVolume.enabled = !enable; fixedCamera.SetActive(enable); isActive = enable; }