mixedcards/Assets/Battle/CardDatabase.cs
2020-09-19 00:34:27 -04:00

20 lines
436 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum CardId {
CrashingPunch
}
public class CardDatabase
{
public static BaseCard CreateCard(CardId id) {
switch (id)
{
case CardId.CrashingPunch:
return new CardCrashingPunch();
default:
throw new System.ArgumentException("CardId unknown", "id");
}
}
}