コード例 #1
0
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.SmartBombCollected, OnSmartBombCollected);
     DomainEventManager.StartGlobalListening(EventNames.WaveStart, OnWaveStart);
     DomainEventManager.StartGlobalListening(EventNames.WaveFailed, Disable);
     DomainEventManager.StartGlobalListening(EventNames.WaveComplete, Disable);
 }
コード例 #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);
    }
コード例 #3
0
    void OnEnable()
    {
        DomainEventManager.StartGlobalListening(EventNames.OpenLevelPortal, OnOpeningPortal);
        DomainEventManager.StartGlobalListening(EventNames.WaveTaskCompleted, OnOpeningPortal);

        DomainEventManager.StartGlobalListening(EventNames.CloseLevelPortal, OnClosingPortal);
        DomainEventManager.StartGlobalListening(EventNames.WaveInit, OnClosingPortal);
    }
コード例 #4
0
    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);
    }
コード例 #5
0
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.WaveInit, OnWaveInit);
     //		CrystalObject.onCrystalCreated += OnCrystalCreated;
     //		CrystalObject.onCrystalCollected += Collected;
     //		CrystalObject.onCreated += RegisterObjectScript;
     //		CrystalObject.onDestroyed += UnregisterObjectScript;
 }
コード例 #6
0
ファイル: UIWaveTime.cs プロジェクト: lemonyzer/CrystalQuest
 // 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);
 }
コード例 #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);
    }
コード例 #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);
    }
コード例 #9
0
    void OnEnable()
    {
        if (DomainEventManager.instance != null)
        {
            DomainEventManager.StartGlobalListening(EventNames.PlayerGameOver, OnGameOver);
            DomainEventManager.StartGlobalListening(EventNames.AllWavesCompleted, OnGameOver);
//			DomainEventManager.StartGlobalListening (EventNames.OnGameOver, OnGameOver);
        }
    }
コード例 #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);
    }
コード例 #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);
    }
コード例 #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);
    }
コード例 #13
0
 // Use this for initialization
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.ScoredValue, onScoring);
 }
コード例 #14
0
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.WaveInit, OnWaveInit);
     DomainEventManager.StartGlobalListening(EventNames.CrystalCollected, OnCrystalCollected);
 }
コード例 #15
0
 // Use this for initialization
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.WavePreInit, OnWavePreInit);
     DomainEventManager.StartGlobalListening(EventNames.WaveStart, OnWaveStart);
 }
コード例 #16
0
 void OnEnable()
 {
     EnableCollisionDetection();
     DomainEventManager.StartGlobalListening(EventNames.PlayerDied, OnPlayerDied);
     DomainEventManager.StartGlobalListening(EventNames.WaveStart, EnableCollisionDetection);
 }
コード例 #17
0
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.WaveStart, OnStartWave);
 }
コード例 #18
0
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.OnGameOver, OnGameOver);
     DomainEventManager.StartGlobalListening(EventNames.PlayerGameOver, OnGameOver);
     DomainEventManager.StartGlobalListening(EventNames.AllWavesCompleted, OnAllWavesCompleted);
 }
コード例 #19
0
    void OnEnable()
    {
//		SmartBombManager.onSmartBombing += SmartBombTriggered;
        DomainEventManager.StartGlobalListening(EventNames.SmartBombTriggered, SmartBombTriggered);
    }
コード例 #20
0
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.PlayerDied, OnPlayerDied);
     DomainEventManager.StartGlobalListening(EventNames.WaveRetry, OnWaveRetry);
     DomainEventManager.StartGlobalListening(EventNames.ExtraLifeGained, OnExtraLifeGained);
 }
コード例 #21
0
 void OnEnable()
 {
     DomainEventManager.StartGlobalListening(EventNames.SmartBombAmount, UpdateUI);
     //		PlayerObjectScript.onLifeUpdate += UpdateUI;
 }
コード例 #22
0
 void OnEnable()
 {
     //		SmartBombManager.onSmartBombing += SmartBombTriggered;
     DomainEventManager.StartGlobalListening(EventNames.WaveComplete, OnLevelCompleted);
 }