// Use this for initialization
    void Start()
    {
        fpc = FindObjectOfType <FirstPersonController>();
        //        var aux = fpc.GetComponentsInChildren<GameObject>();
        cursor = FindObjectOfType <ControladorCursor>();


        var aux = fpc.transform.Find("FirstPersonCharacter");


        camara = aux.GetComponent <Camera>();


        normalFov = camara.fieldOfView;
        zoomFov   = normalFov / zoom;

        Reset();
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     cursor = FindObjectOfType <ControladorCursor>();
 }