Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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;
            }
        }