Exemple #1
0
 void Start()
 {
     enemyFactory = EnemyFactory.Instance;
     StartCoroutine(EnemySpawnCoroutine());
     towerEventHandler       = TowerEventHandler.Instance;
     HealthStats.OnGameLost += GameLost;
 }
 private TowerEventHandler()
 {
     Instance = this;
     TowerUpgradeDowngrade.OnUpgrade   += HandleUpgradeEvent;
     TowerUpgradeDowngrade.OnDowngrade += HandleDowngradeEvent;
     TowerUpgradeDowngrade.OnTowerSold += HandleSoldEvent;
     TowerFactory.OnTowerPlaced        += HandleTowerPlacedEvent;
 }