using System.Collections; using System.Collections.Generic; using UnityEngine; public enum MCardId { VampireFangs, } public static class MonsterCardDatabase { public static MonsterCard CreateCard(MCardId id, BattleParticipant owner) { switch (id) { case MCardId.VampireFangs: return new VampireFangsMCard(owner); default: throw new System.ArgumentException("MCardId unknown", "id"); } } }