public void Edit() { for (int i = SC_DeckBuilder.deckCards.Count; i > 0; i--) { SC_DeckBuilder.TryAddRemove(SC_DeckBuilder.deckCards.Keys.ElementAt(0), false); } foreach (SC_BaseCard c in SC_Global.CodeToCardsList(SelectedDeck.Deck)) { SC_DeckBuilder.TryAddRemove(c, true); } gameObject.SetActive(false); deckBuilder.Show(true); }