Example #1
0
    void Update()
    {
        RaycastHit hit;

        if (vision.PuedeVerAlJugador(out hit))
        {
            agente.perseguirOjetivo = hit.transform;
            estados.ActivarEstado(estados.Perseguir);
            return;
        }
        if (agente.Llego())
        {
            sigpunto = (sigpunto + 1) % WayPoints.Length;
            Actualizarwaypoint();
        }
    }