Ejemplo n.º 1
0
 public void DoUnitOfWork(IObjectPool pool, Transform root)
 {
     while (Count > 0)
     {
         var item = Dequeue();
         Reconciler.Reconcile(item.elementToUpdate, pool, item.elementToUpdate.Clone(), root);
     }
 }
Ejemplo n.º 2
0
        private void Update()
        {
            if (!built)
            {
                var rootElement = Element.Create(rootComponent.Create(), new PropCollection(new Dictionary <string, object>()));
                Reconciler.CreateElementTree(rootElement);
                Reconciler.InvokeBuilders(rootElement, this, this.transform);

                built = true;
            }

            Element.ClearElementCache();
            SystemHook.Prepopulate();
            ScreenSizeHook.Prepopulate();
            MousePositionHook.Prepopulate();
            PropCollection.FlushCallbacks();

            RenderQueue.Instance.DoUnitOfWork(this, this.transform);
        }