void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.SmartBombCollected, OnSmartBombCollected); DomainEventManager.StartGlobalListening(EventNames.WaveStart, OnWaveStart); DomainEventManager.StartGlobalListening(EventNames.WaveFailed, Disable); DomainEventManager.StartGlobalListening(EventNames.WaveComplete, Disable); }
void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.WavePreInit, OnWavePreInit); DomainEventManager.StartGlobalListening(EventNames.ExtraLifeGained, OnExtraLifeGained); DomainEventManager.StartGlobalListening(EventNames.WaveStart, OnWaveStart); DomainEventManager.StartGlobalListening(EventNames.WaveComplete, OnWaveComplete); // DomainEventManager.StartGlobalListening (EventNames.WaveInit, OnWaveInit); }
void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.OpenLevelPortal, OnOpeningPortal); DomainEventManager.StartGlobalListening(EventNames.WaveTaskCompleted, OnOpeningPortal); DomainEventManager.StartGlobalListening(EventNames.CloseLevelPortal, OnClosingPortal); DomainEventManager.StartGlobalListening(EventNames.WaveInit, OnClosingPortal); }
void OnEnable() { // DomainEventManager.StartGlobalListening (EventNames.WaveStart, EnableInput); // DomainEventManager.StartGlobalListening (EventNames.WaveFailed, ); // DomainEventManager.StartGlobalListening (EventNames.WaveComplete); DomainEventManager.StartGlobalListening(EventNames.SmartBombButtonEnabled, EnableButton); DomainEventManager.StartGlobalListening(EventNames.SmartBombButtonDisabled, DisableButton); }
void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.WaveInit, OnWaveInit); // CrystalObject.onCrystalCreated += OnCrystalCreated; // CrystalObject.onCrystalCollected += Collected; // CrystalObject.onCreated += RegisterObjectScript; // CrystalObject.onDestroyed += UnregisterObjectScript; }
// Use this for initialization void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.WaveInit, OnWaveInit); DomainEventManager.StartGlobalListening(EventNames.WaveStart, OnWaveStart); DomainEventManager.StartGlobalListening(EventNames.WaveFailed, OnWaveFailed); DomainEventManager.StartGlobalListening(EventNames.WaveComplete, OnWaveComplete); DomainEventManager.StartGlobalListening(EventNames.OnGameOver, OnGameOver); }
// Use this for initialization void OnEnable() { // DomainEventManager.StartGlobalListening (EventNames.AllCrystalsCollected, OnAllCrystalsCollected); DomainEventManager.StartGlobalListening(EventNames.SmartBombTriggered, OnSmartBombTriggered); DomainEventManager.StartGlobalListening(EventNames.KillAllEnemies, OnKillAllEnemies); DomainEventManager.StartGlobalListening(EventNames.WaveDestroyCurrent, OnWaveDestroyCurrent); DomainEventManager.StartGlobalListening(EventNames.WaveFailed, DisableMe); DomainEventManager.StartGlobalListening(EventNames.WaveComplete, DisableMe); }
void OnEnable() { // DomainEventManager.StartGlobalListening (EventNames.AllCrystalsCollected, OnAllCrystalsCollected); DomainEventManager.StartGlobalListening(EventNames.SmartBombTriggered, OnSmartBombTriggered); DomainEventManager.StartGlobalListening(EventNames.RemoveAllProjectiles, DisableMe); DomainEventManager.StartGlobalListening(EventNames.WaveDestroyCurrent, DisableMe); DomainEventManager.StartGlobalListening(EventNames.WaveFailed, DisableMe); DomainEventManager.StartGlobalListening(EventNames.WaveComplete, DisableMe); }
void OnEnable() { if (DomainEventManager.instance != null) { DomainEventManager.StartGlobalListening(EventNames.PlayerGameOver, OnGameOver); DomainEventManager.StartGlobalListening(EventNames.AllWavesCompleted, OnGameOver); // DomainEventManager.StartGlobalListening (EventNames.OnGameOver, OnGameOver); } }
void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.WaveInit, OnWaveInit); DomainEventManager.StartGlobalListening(EventNames.WaveStart, OnWaveStart); DomainEventManager.StartGlobalListening(EventNames.WaveRetry, OnWaveRetry); DomainEventManager.StartGlobalListening(EventNames.WaveFailed, OnWaveFailed); DomainEventManager.StartGlobalListening(EventNames.WaveComplete, OnWaveComplete); // TODO DONE: Dependency Inversion // Gedanke dahinter war Componenten unabhängig vom Spiel zu machen, dann muss aber eine Componente alle Componenten kennen und deren Events einzeln aufrufen // DomainEventManager.StartGlobalListening (EventNames.StartEnemySpawning, StartSpawning); // DomainEventManager.StartGlobalListening (EventNames.StopEnemySpawning, StopSpawning); }
void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.WaveInit, OnWaveInit); // DomainEventManager.StartGlobalListening (EventNames.WaveStart, OnWaveStart); DomainEventManager.StartGlobalListening(EventNames.PlayerDied, OnPlayerDied); DomainEventManager.StartGlobalListening(EventNames.PlayerWillRespawn, OnPlayerWillRespawn); // DomainEventManager.StartGlobalListening (EventNames.PlayerRespawned, OnPlayerRespawned); DomainEventManager.StartGlobalListening(EventNames.AllCrystalsCollected, OnAllCrystallsCollected); // DomainEventManager.StartGlobalListening (EventNames.CrystalsCollected, OnCrystalCollected); DomainEventManager.StartGlobalListening(EventNames.PortalReached, OnPlayerTriggerWaveExit); // DomainEventManager.StartGlobalListening (EventNames.WaveDestroyCurrent, OnWaveDestroyCurrent); }
void OnEnable() { // // Variante A // // // PointsObject.onReleasePoints += UpdateUI; // // Variante B // // score wird von PlayerObjectScript verwaltet // PlayerObjectScript.onScoreUpdate += UpdateUI; // Variante C // score wird von CrystalQuestScoreManager verwaltet // CrystalQuestScoreManager.onScoreUpdate += UpdateUI; // Variante D DomainEventManager.StartGlobalListening(EventNames.ScoreUpdate, UpdateUI); }
// Use this for initialization void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.ScoredValue, onScoring); }
void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.WaveInit, OnWaveInit); DomainEventManager.StartGlobalListening(EventNames.CrystalCollected, OnCrystalCollected); }
// Use this for initialization void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.WavePreInit, OnWavePreInit); DomainEventManager.StartGlobalListening(EventNames.WaveStart, OnWaveStart); }
void OnEnable() { EnableCollisionDetection(); DomainEventManager.StartGlobalListening(EventNames.PlayerDied, OnPlayerDied); DomainEventManager.StartGlobalListening(EventNames.WaveStart, EnableCollisionDetection); }
void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.WaveStart, OnStartWave); }
void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.OnGameOver, OnGameOver); DomainEventManager.StartGlobalListening(EventNames.PlayerGameOver, OnGameOver); DomainEventManager.StartGlobalListening(EventNames.AllWavesCompleted, OnAllWavesCompleted); }
void OnEnable() { // SmartBombManager.onSmartBombing += SmartBombTriggered; DomainEventManager.StartGlobalListening(EventNames.SmartBombTriggered, SmartBombTriggered); }
void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.PlayerDied, OnPlayerDied); DomainEventManager.StartGlobalListening(EventNames.WaveRetry, OnWaveRetry); DomainEventManager.StartGlobalListening(EventNames.ExtraLifeGained, OnExtraLifeGained); }
void OnEnable() { DomainEventManager.StartGlobalListening(EventNames.SmartBombAmount, UpdateUI); // PlayerObjectScript.onLifeUpdate += UpdateUI; }
void OnEnable() { // SmartBombManager.onSmartBombing += SmartBombTriggered; DomainEventManager.StartGlobalListening(EventNames.WaveComplete, OnLevelCompleted); }