// Start is called before the first frame update void Start() { player = GameObject.FindObjectOfType <ControllerPersonaje>().gameObject; duracionDiagonales = 0; drones.SetActive(false); dronesFinal.SetActive(false); pillarDireccionDiagonal = true; eb = GetComponent <EstadosBoss2>(); animator = gameObject.GetComponent <Animator>(); //for (int i = 0; i < chapasDestruibles.Length; i++) //{ // chapasDestruibles[i].GetComponent<BoxCollider2D>().enabled = false; //} }
// Start is called before the first frame update void Start() { player = FindObjectOfType <ControllerPersonaje>().gameObject; boss = FindObjectOfType <AtaquesBoss>().gameObject; eb = boss.GetComponent <EstadosBoss2>(); }