public void RemoveFlashingFromAllEntities() { if (this.flashingEntities.Count == 0) { return; } int count = this.flashingEntities.Count; for (int i = 0; i < count; i++) { FlashingEntity flashingEntity = this.flashingEntities[i]; flashingEntity.Complete(); } this.flashingEntities.Clear(); this.UnregisterObservers(); }
private void StopFlashing(int i) { FlashingEntity flashingEntity = this.flashingEntities[i]; flashingEntity.Complete(); this.flashingEntities.RemoveAt(i); if (this.flashingEntities.Count == 0) { this.UnregisterObservers(); } GameObjectViewComponent gameObjectViewComp = flashingEntity.Entity.GameObjectViewComp; if (gameObjectViewComp != null) { gameObjectViewComp.IsFlashing = false; } }