Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
    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;
    }