示例#1
0
    private void SwitchToPlayer()
    {
        playerCamera.enabled        = true;
        playerAudioListener.enabled = true;
        cameraRig.active            = false;
        scenicCamera.enabled        = false;
        scenicAudioListener.enabled = false;

        player.SetPlayerMovementLock(false);
    }
示例#2
0
 public virtual void ToggleState(bool enable)
 {
     player.SetPlayerMovementLock(enable);
     player.SetCameraState(!enable);
     triggerVolume.enabled = !enable;
     fixedCamera.SetActive(enable);
     isActive = enable;
 }