コード例 #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);
         }
     }
 }
コード例 #2
0
ファイル: Clock.cs プロジェクト: tolgatr61/nostormv2
 private void tick()
 {
     if (Enabled)
     {
         if (SecondsRemaining > 0)
         {
             SecondsRemaining -= 10;
         }
         else
         {
             TimeoutEvents.ForEach(ev => EventHelper.Instance.RunEvent(ev));
             TimeoutEvents.RemoveAll(s => s != null);
         }
     }
 }