示例#1
0
        void TargetPlacedCardOnTable(Card card)
        {
            GameObject newCard = Instantiate(cardPrefab, uIPlayerHand.tableHandTransform);
            UICard     uiCard  = newCard.GetComponent <UICard> ();

            uiCard.SetCard(card);
            uiCard.SetUIPlayerHand(uIPlayerHand);
        }
示例#2
0
        void RpcReceiveCard(Card card)
        {
            if (isLocalPlayer)
            {
                // Debug.Log ($"Received Card: {card.suit} {card.value}");

                GameObject newCard = Instantiate(cardPrefab, uIPlayerHand.handTransform);
                UICard     uiCard  = newCard.GetComponent <UICard> ();
                uiCard.SetCard(card);
                uiCard.SetUIPlayerHand(uIPlayerHand);
            }
            else
            {
                // Debug.Log ($"Received Card: {card.suit} {card.value}");

                uIPlayerHand.SpawnCardBack();
            }
        }