Esempio n. 1
0
 public override void OnNetworkDestroy()
 {
     if (playerPanel != null)
     {
         playerPanel.ClearCards();
         playerPanel.gameObject.SetActive(false);
     }
 }//function for when the networke is destroy
Esempio n. 2
0
 public override void OnNetworkDestroy()
 {
     if (playerPanel != null)
     {
         playerPanel.ClearCards();
         playerPanel.gameObject.SetActive(false);
     }
 }
Esempio n. 3
0
 void ServerClearHands()//clearing the card in the server then clearring the card at the client
 {
     communityCard.ClearCards();
     cardsInTable.Clear();
     foreach (var player in players)
     {
         player.ServerClearCards();
         player.ServerClearBet();
     }
     currentTurnPlayer = null;
 }