IEnumerator camChange() { yield return(new WaitForSeconds(0.01f)); if (camMode == 0) { FirstCam.SetActive(false); ThirdCam.SetActive(true); RotCam.SetActive(false); aimCam.SetActive(false); } if (camMode == 1) { FirstCam.SetActive(true); ThirdCam.SetActive(false); RotCam.SetActive(false); aimCam.SetActive(false); } if (camMode == 2) { FirstCam.SetActive(false); ThirdCam.SetActive(false); RotCam.SetActive(true); aimCam.SetActive(false); } }
IEnumerator aimChange() { yield return(new WaitForSeconds(0.3f)); FirstCam.SetActive(false); ThirdCam.SetActive(false); RotCam.SetActive(false); aimCam.SetActive(true); }
void Start() { gm = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameManager>(); rc = GetComponentInParent <RotCam> (); }