Beispiel #1
0
 private void Tick()
 {
     if (Enabled)
     {
         if (DeciSecondRemaining > 0)
         {
             DeciSecondRemaining -= 10;
         }
         else
         {
             TimeoutEvents.ForEach(ev => { EventHelper.Instance.RunEvent(ev); });
             TimeoutEvents.RemoveAll(s => s != null);
         }
     }
 }
Beispiel #2
0
 private void tick()
 {
     if (Enabled)
     {
         if (SecondsRemaining > 0)
         {
             SecondsRemaining -= 10;
         }
         else
         {
             TimeoutEvents.ForEach(ev => EventHelper.Instance.RunEvent(ev));
             TimeoutEvents.RemoveAll(s => s != null);
         }
     }
 }