void Start() { free = true; vel = 20f; cam = this.GetComponent <Camera>(); dentroPos = new Vector3(85, 40, 25); fueraPos = new Vector3(25, 40, 25); bc = FindObjectOfType <BocadillosControlador>(); }
// Update is called once per frame void Update() { if (!bocadillosFound) { bocadillos = FindObjectOfType <BocadillosControlador>(); if (bocadillos != null) { //Debug.Log("Encontrado"); bocadillosFound = true; } } tiempoDePatrullo -= Time.deltaTime; ActualizarHambre(); ActualizarSiPuedeSerCurada(); SistemaDeVision(); }