public void PlayerTurn() { OpenPanel_Cartas panel = GameObject.Find("ButtonCartas").GetComponent <OpenPanel_Cartas>(); panel.forceOpen(); //Actualizar estado de combos CartasArray = GameObject.FindGameObjectsWithTag("CartaCampo"); combosJugador(CartasArray); CartasArray = GameObject.FindGameObjectsWithTag("CartaCampo"); for (int i = 0; i < CartasArray.Length; i++) { CartasArray[i].GetComponent <ObjetoCarta>().setActiva(true); CartasArray[i].GetComponent <ObjetoCarta>().setAtaqueActivo(false); } TiendaCartas tienda = GameObject.Find("ButtonReroll").GetComponent <TiendaCartas>(); if (GameObject.FindGameObjectWithTag("Tienda").activeInHierarchy) { tienda.rerollTurno(); } GameObject.FindGameObjectWithTag("Mano").GetComponent <DropZone>().tipoCarta = Draggable.Slot.MANO; zone.tipoCarta = Draggable.Slot.CAMPO; botonPasar.enabled = true; TextoTurno.text = "Tu turno"; Jugador.GetComponent <ObjetoJugador>().ganarOro(5); CartasArray = GameObject.FindGameObjectsWithTag("CartaCampoEn"); for (int i = 0; i < CartasArray.Length; i++) { CartasArray[i].GetComponent <ObjetoCarta>().setActiva(true); } }