private static IEnumerator<bool> SineWave(EnemyBoss boss, double speed) { while (boss.Health >= 0) { yield return true; } }
public static BossPhase Create(EnemyBoss boss, IEnumerator<bool> op, int health) { return new BossPhase { Operation = op, MaxHealth = health }; }