public void DestroyCard(DeedCardScript card) { photonView.RPC ("Parenting", PhotonTargets.AllBuffered, card.gameObject.GetPhotonView ().viewID, destroyedCards.GetPhotonView ().viewID, false); cardsInHand--; ArrangeHand(0); }
public void DiscardCard(DeedCardScript card) { if (photonView.isMine) { photonView.RPC ("Parenting", PhotonTargets.AllBuffered, card.gameObject.GetPhotonView ().viewID, discardPile.GetPhotonView ().viewID, false); cardsInHand--; ArrangeHand (0); } }
public void AddCardToHand(DeedCardScript card) { if (photonView.isMine) { card.transform.SetParent(hand.transform); // photonView.RPC ("Parenting", PhotonTargets.AllBuffered, card.gameObject.GetPhotonView ().viewID, hand.gameObject.GetPhotonView ().viewID, false); card.player = this; cardsInHand++; ArrangeHand (0); } }