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); }
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); }