示例#1
0
        private void DisplayPreRoundComment(RoundProperties nextRound)
        {
            var rewardText = nextRound.RoundNumber == 1 ? "" :
                             $"Round {nextRound.RoundNumber - 1} passed. {102 - nextRound.RoundNumber} money awarded. ";

            DisplayDialogue(rewardText + nextRound.PreRoundComment);
        }
示例#2
0
        private IEnumerator SpawnBloonsInRound(RoundProperties roundProperties)
        {
            foreach (var spawnGroup in roundProperties.SpawnGroups)
            {
                yield return(new WaitForSeconds(spawnGroup.InitialSpawnDelay));

                StartCoroutine(SpawnBloonsInGroup(spawnGroup));
            }
        }
示例#3
0
        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);
        }
示例#4
0
 private void ShowStartRoundButton(RoundProperties round) => ShowStartRoundButton();
示例#5
0
 private void RoundComplete(RoundProperties completedRound)
 {
     EndOfRoundReward(completedRound.RoundNumber);
 }