void TargetPlacedCardOnTable(Card card) { GameObject newCard = Instantiate(cardPrefab, uIPlayerHand.tableHandTransform); UICard uiCard = newCard.GetComponent <UICard> (); uiCard.SetCard(card); uiCard.SetUIPlayerHand(uIPlayerHand); }
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(); } }