Esempio 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();
        }
Esempio 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;
            }
        }