public override void OnNetworkDestroy() { if (playerPanel != null) { playerPanel.ClearCards(); playerPanel.gameObject.SetActive(false); } }//function for when the networke is destroy
public override void OnNetworkDestroy() { if (playerPanel != null) { playerPanel.ClearCards(); playerPanel.gameObject.SetActive(false); } }
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; }