Ejemplo n.º 1
0
        internal static Card genCard(CardData d, object tar)
        {
            CardInfo ci  = getInfo(d);
            Card     ans = PokerConfig.getInstance().instantiateCard();

            ans.init(ci, tar);
            return(ans);
        }
Ejemplo n.º 2
0
 public static PokerConfig getInstance()
 {
     if (instance == null)
     {
         instance = FindObjectOfType <PokerConfig>();
     }
     return(instance);
 }