Ejemplo n.º 1
0
    void Update()
    {
        RaycastHit hit;

        if (!vision.PuedeVerAlJugador(out hit, true))
        {
            timer += Time.deltaTime;
            if (timer >= 10f)
            {
                timer = 0;
                estados.ActivarEstado(estados.Patrulla);
                return;
            }
        }
        agente.ActualizarPuntoN();
    }