示例#1
0
        public void OnTakeStackCards()
        {
            List <byte> stackCardsValues       = cardAnimator.getStackValues();
            bool        senderNotIsLocalPlayer = currentTurnPlayer != localPlayer;

            currentTurnPlayer.SendStackCardsToPlayer(currentTurnPlayer, cardAnimator, stackCardsValues, senderNotIsLocalPlayer);

            //cardAnimator.
            gameDataManager.AddCardValuesToPlayer(currentTurnPlayer, stackCardsValues);

            //PLAY SOUND
            audioData.PlayOneShot(takePileClip);

            takeButton.gameObject.active = false;
        }