Ejemplo n.º 1
0
 /// <see cref="ITaskManager.UnsubscribeFromSystemUpdate"/>
 public void UnsubscribeFromSystemUpdate(SystemUpdateHdl handler)
 {
     this.updateHandlers.Remove(handler);
     if (this.updateHandlers.Count == 0)
     {
         UIRoot.Instance.GraphicsPlatform.RenderLoop.FrameUpdate -= this.AdaptedUpdateHdl;
     }
 }
Ejemplo n.º 2
0
 /// <see cref="ITaskManager.SubscribeToSystemUpdate"/>
 public void SubscribeToSystemUpdate(SystemUpdateHdl handler)
 {
     if (this.updateHandlers.Count == 0)
     {
         UIRoot.Instance.GraphicsPlatform.RenderLoop.FrameUpdate += this.AdaptedUpdateHdl;
     }
     this.updateHandlers.Add(handler);
 }