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