Example #1
0
 public void DestroyUI()
 {
     buildItButton.eventClick -= BuildItButtonClick;
     strip.RemoveUIComponent(buildItButton);
     UIView.Destroy(buildItButton);
     UIView.Destroy(panel);
     UIView.Destroy(window);
 }
Example #2
0
 public override void OnLevelUnloading()
 {
     Debug.Log("OnLevelUnloading()");
     menuButton.eventClick -= uiButton_eventClick;
     strip.RemoveUIComponent(menuButton);
     UIView.Destroy(menuButton);
     UIView.Destroy(panel);
     UIView.Destroy(window);
 }
Example #3
0
 public override void OnLevelUnloading()
 {
     if (initialized && menuButton != null)
     {
         menuButton.eventClick -= uiButton_eventClick;
         strip.RemoveUIComponent(menuButton);
         UIView.Destroy(menuButton);
         UIView.Destroy(panel);
         UIView.Destroy(window);
         initialized = false;
     }
 }
Example #4
0
        public static void RemoveThemesTab()
        {
            UITabstrip tabstrip = ToolsModifierControl.policiesPanel.Find("Tabstrip") as UITabstrip;

            if (tab != null)
            {
                tabstrip.RemoveUIComponent(tab);
                GameObject.Destroy(tab.gameObject);
                tab = null;
            }

            if (container != null)
            {
                tabstrip.tabPages.RemoveUIComponent(container);
                GameObject.Destroy(container.gameObject);
                container = null;
            }
        }