RemoveChildNice() публичный Метод

public RemoveChildNice ( View child ) : void
child View
Результат void
Пример #1
0
        private void KillIfEmpty()
        {
            // if we're empty, remove ourselves
            if (m_Panes.Count != 0)
            {
                return;
            }

            if (parent == null)
            {
                window.InternalCloseWindow();
                return;
            }

            SplitView sw = (SplitView)parent;

            sw.RemoveChildNice(this);

            if (!m_IsBeingDestroyed)
            {
                DestroyImmediate(this, true);
            }

            sw.Cleanup();
        }
Пример #2
0
        private void KillIfEmpty()
        {
            if (this.m_Panes.Count != 0)
            {
                return;
            }
            if (base.parent == null)
            {
                base.window.InternalCloseWindow();
                return;
            }
            SplitView     splitView    = base.parent as SplitView;
            ICleanuppable cleanuppable = base.parent as ICleanuppable;

            splitView.RemoveChildNice(this);
            UnityEngine.Object.DestroyImmediate(this, true);
            if (cleanuppable != null)
            {
                cleanuppable.Cleanup();
            }
        }
Пример #3
0
 private void KillIfEmpty()
 {
     if (this.m_Panes.Count == 0)
     {
         if (base.parent == null)
         {
             base.window.InternalCloseWindow();
         }
         else
         {
             SplitView     parent       = base.parent as SplitView;
             ICleanuppable cleanuppable = base.parent as ICleanuppable;
             parent.RemoveChildNice(this);
             Object.DestroyImmediate(this, true);
             if (cleanuppable != null)
             {
                 cleanuppable.Cleanup();
             }
         }
     }
 }
Пример #4
0
 private void KillIfEmpty()
 {
     if (this.m_Panes.Count != 0)
     {
         return;
     }
     if ((UnityEngine.Object) this.parent == (UnityEngine.Object)null)
     {
         this.window.InternalCloseWindow();
     }
     else
     {
         SplitView     parent1 = this.parent as SplitView;
         ICleanuppable parent2 = this.parent as ICleanuppable;
         parent1.RemoveChildNice((View)this);
         UnityEngine.Object.DestroyImmediate((UnityEngine.Object) this, true);
         if (parent2 == null)
         {
             return;
         }
         parent2.Cleanup();
     }
 }