public Charm.CharmType CharmTypeFromString(string input) { try { Charm.CharmType val = (Charm.CharmType)Enum.Parse(typeof(Charm.CharmType), input); return(val); } catch (ArgumentException) { Debug.Log("CHARM CONVERSION DID NOT WORK:" + input); return(Charm.CharmType.StatusEffect); } }
public void activate(DBDeck _deck, DBDeckButtonGO _deckButton, Charm.CharmType _type) { deck = _deck; deckButton = _deckButton; type = _type; isActive = true; gameObject.SetActive(true); gameObject.name = "charm " + deck.displayName + " " + type; gameObject.SetActive(true); mouseIsOver = false; }