Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/jackmawer/JacksWorld. An abandoned mini-project that I created while learning to use Unity with networking.
Something went wrong. Try again.
JacksWorld CameraSwitcher.js
267 B · 14 lines
JavaScript
at master
1234567891011121314#pragma strictvar cam1 : GameObject; var cam2 : GameObject;
function Start() { cam1.active = true; cam2.active = false; }
function Update() {
if (Input.GetKeyDown(KeyCode.C)) { cam1.active = !cam1.active; cam2.active = !cam2.active; }
}