Esempio n. 1
0
 public void DestroyCard(DeedCardScript card)
 {
     photonView.RPC ("Parenting", PhotonTargets.AllBuffered, card.gameObject.GetPhotonView ().viewID, destroyedCards.GetPhotonView ().viewID, false);
     cardsInHand--;
     ArrangeHand(0);
 }
Esempio n. 2
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);
     }
 }
Esempio n. 3
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);
     }
 }