private static void UpdateSchedulers()
{
Dictionary <int, Panel> .Enumerator panelsIterator = UIElementsUtility.GetPanelsIterator();
while (panelsIterator.MoveNext())
{
KeyValuePair <int, Panel> current = panelsIterator.Current;
Panel value = current.Value;
if (value.contextType == ContextType.Editor)
{
IScheduler scheduler = value.scheduler;
value.timerEventScheduler.UpdateScheduledEvents();
DataWatchService dataWatchService = value.dataWatch as DataWatchService;
dataWatchService.ProcessNotificationQueue();
if (value.visualTree.IsDirty(ChangeType.Repaint))
{
GUIView gUIView = EditorUtility.InstanceIDToObject(value.instanceID) as GUIView;
if (gUIView != null)
{
gUIView.Repaint();
}
}
}
}
}