// 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(); }
// Use this for initialization void Start() { cursor = FindObjectOfType <ControladorCursor>(); }