public void DrawCard(MainNode node) { var se = Sound.Load(@"resources/card-put.ogg", true); Engine.Sound.Play(se); var card = Deck.Draw(); Hand.Add(card); card.Position = new Vector2F(100 + 100 * Hand.Count, 370); card.ZOrder = Hand.Count; node.AddChildNode(card); }
public Card FirstDraw(MainNode node) { var se = Sound.Load(@"resources/card-put.ogg", true); Engine.Sound.Play(se); var card = Deck.Draw(); Hand.Add(card); card.Position = new Vector2F(100 + 100 * Hand.Count, 150); card.ZOrder = Hand.Count; card.IsReverse = true; node.AddChildNode(card); return(card); }