Exemplo n.º 1
0
    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);
        }
    }
Exemplo n.º 2
0
    IEnumerator aimChange()
    {
        yield return(new WaitForSeconds(0.3f));

        FirstCam.SetActive(false);
        ThirdCam.SetActive(false);
        RotCam.SetActive(false);
        aimCam.SetActive(true);
    }
Exemplo n.º 3
0
 void Start()
 {
     gm = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameManager>();
     rc = GetComponentInParent <RotCam> ();
 }