1 using System.Collections;
2 using System.Collections.Generic;
24 thirdPCamera.GetComponent<Camera> ().enabled =
true;
25 overheadCamera.GetComponent<Camera> ().enabled =
false;
48 if (Input.GetKeyDown (
"f")) {
53 if (switchCam ==
true) {
55 thirdPCamera.GetComponent<Camera> ().enabled =
false;
56 overheadCamera.GetComponent<Camera> ().enabled =
true;
59 thirdPCamera.GetComponent<Camera> ().enabled =
true;
60 overheadCamera.GetComponent<Camera> ().enabled =
false;
void Start()
This is to intialize upon start of the game
void Update()
This will update every fame to check whether the user switch cams or not.