private void DisplayPreRoundComment(RoundProperties nextRound) { var rewardText = nextRound.RoundNumber == 1 ? "" : $"Round {nextRound.RoundNumber - 1} passed. {102 - nextRound.RoundNumber} money awarded. "; DisplayDialogue(rewardText + nextRound.PreRoundComment); }
private IEnumerator SpawnBloonsInRound(RoundProperties roundProperties) { foreach (var spawnGroup in roundProperties.SpawnGroups) { yield return(new WaitForSeconds(spawnGroup.InitialSpawnDelay)); StartCoroutine(SpawnBloonsInGroup(spawnGroup)); } }
private void QueueNextRound() { _curGameStatistics.Rounds++; if (_curGameStatistics.Rounds > _rounds.Count) { _gameController.BeginVictory(); return; } if (_curGameStatistics.Rounds != 1) { OnRoundComplete?.Invoke(_curRound); } _curRound = _rounds[CurRoundIndex]; _bloonsLeft = _curRound.TotalBloonCount; OnQueueNextRound?.Invoke(_curRound); }
private void ShowStartRoundButton(RoundProperties round) => ShowStartRoundButton();
private void RoundComplete(RoundProperties completedRound) { EndOfRoundReward(completedRound.RoundNumber); }