// Start is called before the first frame update
 void Start()
 {
     enemigo  = FindObjectOfType <EnemigoB>();
     enemigoI = GetComponentInChildren <EnemigoI>();
     cEnemigo(Id);
     enemigoI.enemigoI();
 }
 // Start is called before the first frame update
 void Start()
 {
     enemigoB = FindObjectOfType <EnemigoB>();
     b        = GetComponentInChildren <Barras>();
     b.vida   = vida;
     BusquedaEnemigo(Id);
 }
예제 #3
0
    // Start is called before the first frame update
    void Start()
    {
        enemigoB = FindObjectOfType <EnemigoB>();

        BusquedaEnemigo(Id);

        animConejo = GetComponent <Animator>();
    }
예제 #4
0
    // Start is called before the first frame update
    void Start()
    {
        VelocidadAgente = velocidad;
        enemigoB        = FindObjectOfType <EnemigoB>();

        BusquedaEnemigo(Id);

        this.anim = GetComponent <Animator>();
        destino   = GameObject.Find("Destino").GetComponent <Transform>();
        objetivo  = GameObject.Find("Destino").GetComponent <Transform>();
    }
예제 #5
0
 // Start is called before the first frame update
 void Start()
 {
     enemigoB = FindObjectOfType <EnemigoB>();
     BusquedaEnemigo(Id);
 }
예제 #6
0
 // Start is called before the first frame update
 void Start()
 {
     enemigoB = FindObjectOfType <EnemigoB>(); //"enemigoB" busca un tipo de objeto "EnemigoB"
     BusquedaEnemigo(Id);
     animConejo = GetComponent <Animator>();   //Retorna un componente de tipo Animator
 }
예제 #7
0
 // Start is called before the first frame update
 void Start()
 {
     enemigoB = FindObjectOfType <EnemigoB>(); //Accede a todos los datos de "enemigoB"
     BusquedaEnemigo(Id);                      //Va a leer un sistema de búsqueda
 }