Exemple #1
0
    public void ServerDealCard()
    {
        Debug.Log("_players: " + _players.Count);

        for (int i = 0; i < _players.Count; i++)
        {
            Player player = _players[i];

            List <CardStruct> cardList = _cardsMgr.GetCards(CardsMgr.INIT_HAVE_CARDS_NUMB);
            player.server_AddCard(cardList);

            player.Rpc_SetCardsNumb(player.HaveCards.Count);
        }

        _cardsMgr.CreateFirstCard();
    }