private void HandleOnNextRound() { currentRound++; SendNextDifficulty(); isRoundActive = true; OnNewRoundStart?.Invoke(); StartCoroutine(CoLeaveScoreCard()); }
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()); } }
private void StartNewRound() { DeckShuffler.Shuffle(playingCardDeck.Cards); playingCardDeck.ResetIndex(); OnNewRoundStart?.Invoke(); }
public void ConfirmManualPairing() { OnNewRoundStart?.Invoke(this, new EventArgs()); }