Exemplo n.º 1
0
        public void HostCardPlayed(RawCard card, Player player)
        {
            if (MainGame.Instance.HostOnly)
            {
                debugOut("Card received");

                card.Player = player.ID;
                client.playCard(card);
                clientData.cardPlayed(card, player.ID);

                AudioHelper.play(ContentStore.soundSlide);
            }
        }
Exemplo n.º 2
0
        public void CardReceived(RawCard card)
        {
            debugOut("Card received");
            if (card == lastReceivedCard)
            {
                return;
            }

            if (card.Player != -1)
            {
                client.playCard(card);
                clientData.cardPlayed(card, card.Player);
            }
            else
            {
                client.dealtCard(card);
            }

            lastReceivedCard = card;

            AudioHelper.play(ContentStore.soundSlide);
        }