/// <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; } }
/// <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); }