Example #1
0
 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>();
 }
Example #2
0
    // 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();
    }