Пример #1
0
 public void UpdateViewSystems(float dt)
 {
     this.updatingView = true;
     for (ViewSystemBase viewSystemBase = this.viewSystems.Head; viewSystemBase != null; viewSystemBase = viewSystemBase.Next)
     {
         viewSystemBase.AccumulateDT(dt);
         if ((viewSystemBase.SchedulingPattern & this.viewThread) != 0)
         {
             viewSystemBase.Update();
         }
     }
     this.updatingView = false;
     if (this.UpdateViewComplete != null)
     {
         this.UpdateViewComplete.Invoke();
     }
     this.viewThread = (ushort)((int)this.viewThread << 1 | 1);
 }