public void Update(float deltaTime) { monsterSpawnCooldown.Update(deltaTime); waveSpawnCooldown.Update(deltaTime); waveService.CollectKillRewards(); goldManagerController.UpdateView(); SpawnNextWave(); SpawnNextMonster(); }
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; } } }