void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.SmartBombCollected, OnSmartBombCollected); DomainEventManager.StopGlobalListening(EventNames.WaveStart, OnWaveStart); DomainEventManager.StopGlobalListening(EventNames.WaveFailed, Disable); DomainEventManager.StopGlobalListening(EventNames.WaveComplete, Disable); }
void OnDisable() { // PointsObject.onReleasePoints -= UpdateUI; // PlayerObjectScript.onScoreUpdate -= UpdateUI; // CrystalQuestScoreManager.onScoreUpdate -= UpdateUI; DomainEventManager.StopGlobalListening(EventNames.ScoreUpdate, UpdateUI); }
void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.WavePreInit, OnWavePreInit); DomainEventManager.StopGlobalListening(EventNames.ExtraLifeGained, OnExtraLifeGained); DomainEventManager.StopGlobalListening(EventNames.WaveStart, OnWaveStart); DomainEventManager.StopGlobalListening(EventNames.WaveComplete, OnWaveComplete); // DomainEventManager.StopGlobalListening (EventNames.WaveInit, OnWaveInit); }
void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.WaveTaskCompleted, OnOpeningPortal); DomainEventManager.StopGlobalListening(EventNames.OpenLevelPortal, OnOpeningPortal); DomainEventManager.StopGlobalListening(EventNames.WaveInit, OnClosingPortal); DomainEventManager.StopGlobalListening(EventNames.CloseLevelPortal, OnClosingPortal); }
void OnDisable() { // DomainEventManager.StopGlobalListening (EventNames.WaveStart); // DomainEventManager.StopGlobalListening (EventNames.WaveFailed); // DomainEventManager.StopGlobalListening (EventNames.WaveComplete); DomainEventManager.StopGlobalListening(EventNames.SmartBombButtonEnabled, EnableButton); DomainEventManager.StopGlobalListening(EventNames.SmartBombButtonDisabled, DisableButton); }
void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.WaveInit, OnWaveInit); // CrystalObject.onCrystalCreated -= OnCrystalCreated; // CrystalObject.onCrystalCollected -= Collected; // CrystalObject.onCreated -= RegisterObjectScript; // CrystalObject.onDestroyed -= UnregisterObjectScript; }
// Update is called once per frame void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.WaveInit, OnWaveInit); DomainEventManager.StopGlobalListening(EventNames.WaveStart, OnWaveStart); DomainEventManager.StopGlobalListening(EventNames.WaveFailed, OnWaveFailed); DomainEventManager.StopGlobalListening(EventNames.WaveComplete, OnWaveComplete); DomainEventManager.StopGlobalListening(EventNames.OnGameOver, OnGameOver); }
// Update is called once per frame void OnDisable() { // DomainEventManager.StopGlobalListening (EventNames.AllCrystalsCollected, OnAllCrystalsCollected); DomainEventManager.StopGlobalListening(EventNames.SmartBombTriggered, OnSmartBombTriggered); DomainEventManager.StopGlobalListening(EventNames.KillAllEnemies, OnKillAllEnemies); DomainEventManager.StopGlobalListening(EventNames.WaveDestroyCurrent, OnWaveDestroyCurrent); DomainEventManager.StopGlobalListening(EventNames.WaveFailed, DisableMe); DomainEventManager.StopGlobalListening(EventNames.WaveComplete, DisableMe); }
void OnDisable() { if (DomainEventManager.instance != null) { DomainEventManager.StopGlobalListening(EventNames.PlayerGameOver, OnGameOver); DomainEventManager.StopGlobalListening(EventNames.AllWavesCompleted, OnGameOver); // DomainEventManager.StopGlobalListening (EventNames.OnGameOver, OnGameOver); } }
// Update is called once per frame void OnDisable() { // DomainEventManager.StopGlobalListening (EventNames.AllCrystalsCollected, OnAllCrystalsCollected); DomainEventManager.StopGlobalListening(EventNames.SmartBombTriggered, OnSmartBombTriggered); DomainEventManager.StopGlobalListening(EventNames.RemoveAllProjectiles, DisableMe); DomainEventManager.StopGlobalListening(EventNames.WaveDestroyCurrent, DisableMe); DomainEventManager.StopGlobalListening(EventNames.WaveFailed, DisableMe); DomainEventManager.StopGlobalListening(EventNames.WaveComplete, DisableMe); }
void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.WaveInit, OnWaveInit); DomainEventManager.StopGlobalListening(EventNames.WaveStart, OnWaveStart); DomainEventManager.StopGlobalListening(EventNames.WaveRetry, OnWaveRetry); DomainEventManager.StopGlobalListening(EventNames.WaveFailed, OnWaveFailed); DomainEventManager.StopGlobalListening(EventNames.WaveComplete, OnWaveComplete); // DomainEventManager.StopGlobalListening (EventNames.StartEnemySpawning, StartSpawning); // DomainEventManager.StopGlobalListening (EventNames.StopEnemySpawning, StopSpawning); }
void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.WaveInit, OnWaveInit); // DomainEventManager.StopGlobalListening (EventNames.WaveStart, OnWaveStart); DomainEventManager.StopGlobalListening(EventNames.PlayerDied, OnPlayerDied); DomainEventManager.StopGlobalListening(EventNames.PlayerWillRespawn, OnPlayerWillRespawn); // DomainEventManager.StopGlobalListening (EventNames.PlayerRespawned, OnPlayerRespawned); DomainEventManager.StopGlobalListening(EventNames.AllCrystalsCollected, OnAllCrystallsCollected); // DomainEventManager.StopGlobalListening (EventNames.CrystalsCollected, OnCrystalCollected); DomainEventManager.StopGlobalListening(EventNames.PortalReached, OnPlayerTriggerWaveExit); // DomainEventManager.StopGlobalListening (EventNames.WaveDestroyCurrent, OnWaveDestroyCurrent); }
// Update is called once per frame void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.ScoredValue, onScoring); }
void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.WaveInit, OnWaveInit); DomainEventManager.StopGlobalListening(EventNames.CrystalCollected, OnCrystalCollected); }
// Update is called once per frame void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.WavePreInit, OnWavePreInit); DomainEventManager.StopGlobalListening(EventNames.WaveStart, OnWaveStart); }
void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.WaveStart, OnStartWave); }
void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.PlayerDied, OnPlayerDied); DomainEventManager.StopGlobalListening(EventNames.WaveStart, EnableCollisionDetection); }
void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.OnGameOver, OnGameOver); DomainEventManager.StopGlobalListening(EventNames.PlayerGameOver, OnGameOver); DomainEventManager.StopGlobalListening(EventNames.AllWavesCompleted, OnAllWavesCompleted); }
void OnDisable() { // SmartBombManager.onSmartBombing -= SmartBombTriggered; DomainEventManager.StopGlobalListening(EventNames.SmartBombTriggered, SmartBombTriggered); }
void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.PlayerDied, OnPlayerDied); DomainEventManager.StopGlobalListening(EventNames.WaveRetry, OnWaveRetry); DomainEventManager.StopGlobalListening(EventNames.ExtraLifeGained, OnExtraLifeGained); }
void OnDisable() { // SmartBombManager.onSmartBombing -= SmartBombTriggered; DomainEventManager.StopGlobalListening(EventNames.WaveComplete, OnLevelCompleted); }
void OnDisable() { DomainEventManager.StopGlobalListening(EventNames.SmartBombAmount, UpdateUI); // PlayerObjectScript.onLifeUpdate -= UpdateUI; }