예제 #1
0
        private void WaveCompleteEventHandler(object sender, SpawnWaveEventArgs args)
        {
            if (!args.IsFinalWave)
            {
                return;
            }

            TransitionLevel();
        }
예제 #2
0
 private void WaveStartEventHandler(object sender, SpawnWaveEventArgs args)
 {
     foreach (WaveEnvironmentSwapper swapper in _environmentSwappers)
     {
         if (args.WaveIndex == swapper.Wave)
         {
             if (swapper.Fade && null != _fadeOutEffectTrigger && null != _fadeInEffectTrigger)
             {
                 _fadeOutEffectTrigger.Trigger(() => {
                     SwapSkin(swapper, args.WaveIndex);
                     _fadeInEffectTrigger.Trigger();
                 });
             }
             else
             {
                 SwapSkin(swapper, args.WaveIndex);
             }
         }
     }
 }
예제 #3
0
 private void WaveStartEventHandler(object sender, SpawnWaveEventArgs args)
 {
     GameUIManager.Instance.GamePlayerUI.HUD.SetWave(args.WaveIndex + 1);
 }