Exemple #1
0
 public CardLogic(CardAsset ca)
 {
     this.ca      = ca;
     UniqueCardID = IDFactory.GetUniqueID();
     baseManaCost = ca.ManaCost;
     ResetManaCost();
     if (ca.SpellScriptName != null && ca.SpellScriptName != "")
     {
         effect = System.Activator.CreateInstance(System.Type.GetType(ca.SpellScriptName)) as SpellEffect;
     }
     CardsCreatedThisGame.Add(UniqueCardID, this);
 }
Exemple #2
0
    public CardLogic(ScriptableObject ca)
    {
        this.ca      = ca;
        UniqueCardID = IDFactory.GetUniqueID();

        /* TODO
         * if (ca.SpellScriptName!= null && ca.SpellScriptName!= "")
         * {
         * effect = System.Activator.CreateInstance(System.Type.GetType(ca.SpellScriptName)) as SpellEffect;
         * }
         */
        CardsCreatedThisGame.Add(UniqueCardID, this);
    }