public Card(string Name, string LogoPath, bool isPlayable, Effect Effect, PreEffect PreEffect = null) { this.Name = Name; this.Logo = Resources.Load <Sprite>(LogoPath); this.isPlayable = isPlayable; this.Effect = Effect; this.PreEffect = PreEffect; }
public Card Create(string Name, string LogoPath, bool isPlayable, Effect Effect, PreEffect PreEffect = null) { Card newCard = template.Clone() as Card; newCard.Name = Name; newCard.Logo = Resources.Load <Sprite>(LogoPath); newCard.isPlayable = isPlayable; newCard.Effect = Effect; newCard.PreEffect = PreEffect; return(newCard); }