20 lines
436 B
C#
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");
|
|
}
|
|
}
|
|
}
|