예제 #1
0
    public static void RefreshWidgetDrawCall(Transform tm)
    {
        UIWidget component = tm.gameObject.GetComponent <UIWidget>();

        if (component != null)
        {
            component.SetDirty();
        }
        IEnumerator enumerator = tm.GetEnumerator();

        try
        {
            while (enumerator.MoveNext())
            {
                object    obj = enumerator.Current;
                Transform tm2 = (Transform)obj;
                DepthController.RefreshWidgetDrawCall(tm2);
            }
        }
        finally
        {
            IDisposable disposable;
            if ((disposable = (enumerator as IDisposable)) != null)
            {
                disposable.Dispose();
            }
        }
    }
예제 #2
0
 protected override void WindowOpened()
 {
     base.WindowOpened();
     if (this.useCMDAnim)
     {
         DepthController.RefreshWidgetDrawCall(base.transform);
     }
 }
예제 #3
0
 private void UpdateReacting()
 {
     if (this.useCMDAnim && this.isReActing && this.actCt == 0)
     {
         this.isReActing = false;
         DepthController.RefreshWidgetDrawCall(base.transform);
         if (this.actCBSetReOpendAction != null)
         {
             bool flag = this.actCBSetReOpendAction(0);
             if (flag)
             {
                 this.actCBSetReOpendAction = null;
             }
         }
     }
 }