Example #1
0
 public void RemoveUIElement(SceneUIElement e, bool bDestroy)
 {
     e.Disconnect();
     e.Parent = null;
     vUIElements.Remove(e);
     if (e.RootGameObject != null && bDestroy)
     {
         e.RootGameObject.SetParent(null);
         e.RootGameObject.Destroy();
     }
 }
Example #2
0
 public void RemoveUIElement(SceneUIElement e, bool bDestroy)
 {
     e.Disconnect();
     e.Parent = null;
     vUIElements.Remove(e);
     if (e.RootGameObject != null && bDestroy)
     {
         e.RootGameObject.transform.parent = null;
         UnityEngine.Object.Destroy(e.RootGameObject);
     }
 }