void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.SmartBombCollected, OnSmartBombCollected);
     DomainEventManager.StartGlobalListening(EventNames.WaveStart, OnWaveStart);
     DomainEventManager.StartGlobalListening(EventNames.WaveFailed, Disable);
     DomainEventManager.StartGlobalListening(EventNames.WaveComplete, Disable);
 }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
    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);
    }
Esempio n. 5
0
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.WaveInit, OnWaveInit);
     //		CrystalObject.onCrystalCreated += OnCrystalCreated;
     //		CrystalObject.onCrystalCollected += Collected;
     //		CrystalObject.onCreated += RegisterObjectScript;
     //		CrystalObject.onDestroyed += UnregisterObjectScript;
 }
Esempio n. 6
0
 // 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);
 }
Esempio n. 7
0
    // 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);
    }
Esempio n. 8
0
    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);
    }
Esempio n. 9
0
    void OnEnable()
    {
        if (DomainEventManager.instance != null)
        {
            DomainEventManager.StartGlobalListening(EventNames.PlayerGameOver, OnGameOver);
            DomainEventManager.StartGlobalListening(EventNames.AllWavesCompleted, OnGameOver);
//			DomainEventManager.StartGlobalListening (EventNames.OnGameOver, OnGameOver);
        }
    }
Esempio n. 10
0
    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);
    }
Esempio n. 11
0
    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);
    }
Esempio n. 12
0
    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);
    }
Esempio n. 13
0
 // Use this for initialization
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.ScoredValue, onScoring);
 }
Esempio n. 14
0
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.WaveInit, OnWaveInit);
     DomainEventManager.StartGlobalListening(EventNames.CrystalCollected, OnCrystalCollected);
 }
Esempio n. 15
0
 // 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);
    }
Esempio n. 20
0
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.PlayerDied, OnPlayerDied);
     DomainEventManager.StartGlobalListening(EventNames.WaveRetry, OnWaveRetry);
     DomainEventManager.StartGlobalListening(EventNames.ExtraLifeGained, OnExtraLifeGained);
 }
Esempio n. 21
0
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.SmartBombAmount, UpdateUI);
     //		PlayerObjectScript.onLifeUpdate += UpdateUI;
 }
 void OnEnable()
 {
     //		SmartBombManager.onSmartBombing += SmartBombTriggered;
     DomainEventManager.StartGlobalListening(EventNames.WaveComplete, OnLevelCompleted);
 }