예제 #1
0
    public void Update(float deltaTime)
    {
        monsterSpawnCooldown.Update(deltaTime);
        waveSpawnCooldown.Update(deltaTime);

        waveService.CollectKillRewards();
        goldManagerController.UpdateView();

        SpawnNextWave();
        SpawnNextMonster();
    }
예제 #2
0
 public void SpawnTower()
 {
     if (View.TowerIsPlaceable)
     {
         Tower tower = towerService.Buy();
         if (tower != null)
         {
             TowerController controller = TowerFactory.CreateTower(Model.SelectedTowerType, tower, this);
             goldManagerController.UpdateView();
             controllers.Add(controller);
             IsInSpawnMode = false;
         }
     }
 }