// Start is called before the first frame update void Start() { vidaEnemigo = GetComponentInParent <crear_enem>(); StartCoroutine("asignarBarra"); }
// Start is called before the first frame update void Start() { //se ancla con el constructor de la creacion de enemigos (el cod largo) vidaEnemigo = GetComponentInParent <crear_enem>(); StartCoroutine("asignarBarra"); }
// Start is called before the first frame update void Start() { dañoEnemigo = GetComponentInParent <crear_enem>(); Debug.Log(dañoEnemigo.name); }