// Start is called before the first frame update void Start() { rb = GetComponent <Rigidbody2D>(); animator = GetComponent <Animator>(); timer = 0; atributos = GetComponent <AtributosEnemigos>(); }
void Start() { player = GameObject.FindGameObjectWithTag("Player").transform; animator = GetComponent <Animator>(); tiempoEntreDisparos = startTiempoEntreDisparos; atributosEnemigos = GetComponent <AtributosEnemigos>(); }