private void WaveCompleteEventHandler(object sender, SpawnWaveEventArgs args) { if (!args.IsFinalWave) { return; } TransitionLevel(); }
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); } } } }
private void WaveStartEventHandler(object sender, SpawnWaveEventArgs args) { GameUIManager.Instance.GamePlayerUI.HUD.SetWave(args.WaveIndex + 1); }