private void CheckMedusaHealthFire() { if (MainLoader.ArcadeMode) { return; } if (GetEnemy().Health < 4.00001f) { CenterFire cf = centerFires.Find(item => item.torchNumber == 0); if (!cf.TurnedOn) { cf.TurnOn(); } } if (GetEnemy().Health < 3.00001f) { CenterFire cf = centerFires.Find(item => item.torchNumber == 1); if (!cf.TurnedOn) { cf.TurnOn(); } } if (GetEnemy().Health < 2.00001f) { CenterFire cf = centerFires.Find(item => item.torchNumber == 2); if (!cf.TurnedOn) { cf.TurnOn(); } } if (GetEnemy().Health < 1.00001f) { CenterFire cf = centerFires.Find(item => item.torchNumber == 3); if (!cf.TurnedOn) { cf.TurnOn(); } } if (GetEnemy().Health <= 0f) { CenterFire cf = centerFires.Find(item => item.torchNumber == 4); if (!cf.TurnedOn) { cf.TurnOn(); } } }
public void RegisterCenterFire(CenterFire centerFire) { this.centerFires.Add(centerFire); }