RequestContainership() public method

public RequestContainership ( IUIContainer cont ) : bool
cont IUIContainer
return bool
 public void ScanChildren()
 {
     this.uiObjs.Clear();
     Component[] componentsInChildren = base.transform.GetComponentsInChildren(typeof(IUIObject), true);
     for (int i = 0; i < componentsInChildren.Length; i++)
     {
         if (!(componentsInChildren[i] == this))
         {
             if (base.gameObject.layer == NrTSingleton <UIManager> .Instance.rayMask)
             {
                 UIPanelManager.SetLayerRecursively(componentsInChildren[i].gameObject, base.gameObject.layer);
             }
             IUIObject iUIObject = (IUIObject)componentsInChildren[i];
             if (!this.uiObjs.ContainsKey(componentsInChildren[i].GetHashCode()))
             {
                 this.uiObjs.Add(componentsInChildren[i].GetHashCode(), (IUIObject)componentsInChildren[i]);
             }
             iUIObject.RequestContainership(this);
         }
     }
     componentsInChildren = base.transform.GetComponentsInChildren(typeof(UIPanelBase), true);
     for (int j = 0; j < componentsInChildren.Length; j++)
     {
         if (!(componentsInChildren[j] == this))
         {
             if (base.gameObject.layer == NrTSingleton <UIManager> .Instance.rayMask)
             {
                 UIPanelManager.SetLayerRecursively(componentsInChildren[j].gameObject, base.gameObject.layer);
             }
             UIPanelBase uIPanelBase = (UIPanelBase)componentsInChildren[j];
             this.childPanels.Add(new EZLinkedListNode <UIPanelBase>(uIPanelBase));
             uIPanelBase.RequestContainership(this);
         }
     }
 }