public static void ApplyNegativeEnemyEffects() { if (EnemyEffect == null) { return; } EnemyEffect(); if (EnemyEffect != null) { foreach (var d in EnemyEffect.GetInvocationList()) { EnemyEffect -= (d as EnemyEffectDelegate); } } }
public static void ClearAllDelegates() { if (NextEngineEffect != null) { foreach (var d in NextEngineEffect.GetInvocationList()) { NextEngineEffect -= (d as NextEngineDelegate); } } if (EnemyEffect != null) { foreach (var d in EnemyEffect.GetInvocationList()) { EnemyEffect -= (d as EnemyEffectDelegate); } } }