Created
April 3, 2018 15:56
-
-
Save tsubaki/4684c2fdf03c880e27b83c9bcb58812d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Cinemachine; | |
public class ChangeCamera : MonoBehaviour { | |
public CinemachineVirtualCamera vcamera; | |
void Update () | |
{ | |
if( Input.GetKeyDown(KeyCode.Space)) | |
{ | |
vcamera.Priority = 100; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment