Esempio n. 1
0
 public void OnViewFrameTime(float dt)
 {
     for (int i = this.flashingEntities.Count - 1; i >= 0; i--)
     {
         FlashingEntity flashingEntity = this.flashingEntities[i];
         if (flashingEntity.Flash(dt))
         {
             this.StopFlashing(i);
         }
     }
 }
Esempio n. 2
0
        public void OnViewFrameTime(float dt)
        {
            bool flag = false;

            for (int i = this.flashingEntities.Count - 1; i >= 0; i--)
            {
                FlashingEntity flashingEntity = this.flashingEntities[i];
                if (flashingEntity.Flash(dt))
                {
                    flag = true;
                    this.StopFlashing(i);
                }
            }
            if (flag)
            {
                this.TrySendShaderResetOnEntityEvent();
            }
        }