Esempio n. 1
0
        private void HandleOnNextRound()
        {
            currentRound++;
            SendNextDifficulty();

            isRoundActive = true;
            OnNewRoundStart?.Invoke();

            StartCoroutine(CoLeaveScoreCard());
        }
Esempio n. 2
0
        public void StartNextRound(bool piManual, bool sendRoundFinished = true)
        {
            if (ivRounds.Any())
            {
                ivAllMatches.AddRange(ivRounds.Last().Matches);

                if (ivRounds.Last().IsEmpty())
                {
                    ivRounds.RemoveAt(ivRounds.Count - 1);
                }
            }

            if (sendRoundFinished)
            {
                OnRoundFinished?.Invoke(this, new EventArgs());
            }

            ivRounds.Add(new Round(ivAllMatches, ivPlayers.ToList(), ivRounds.Count + 1, !piManual));

            if (!piManual)
            {
                OnNewRoundStart?.Invoke(this, new EventArgs());
            }
        }
Esempio n. 3
0
 private void StartNewRound()
 {
     DeckShuffler.Shuffle(playingCardDeck.Cards);
     playingCardDeck.ResetIndex();
     OnNewRoundStart?.Invoke();
 }
Esempio n. 4
0
 public void ConfirmManualPairing()
 {
     OnNewRoundStart?.Invoke(this, new EventArgs());
 }