public CardSocketUI GetCardSlot(Vector2 v, Menu1000Game.KindSlot typeslot) { CardSocketUI cd = null; switch (typeslot) { case Menu1000Game.KindSlot.Table: cd = CardTable(); break; case Menu1000Game.KindSlot.UserCard: cd = CardUser(); break; default: break; } cd.Miejsce = v; return(cd); }
private void AddCard(Vector2 v, Menu1000Game.KindSlot type) { menu1000.AddCardSlot(GetCardSlot(v, type), type); }