Beispiel #1
0
        //显示一个界面
        private void showOneUI(RectTransform ui)
        {
            TJ_UNITY_TOOL.ScenePanelComponent comp = ui.GetComponent <TJ_UNITY_TOOL.ScenePanelComponent>();
            bool activeSave = ui.gameObject.activeSelf;

            ui.gameObject.SetActive(true);
            if (comp && !comp.inShowAni && !activeSave)
            {
                comp.onShow();
            }
        }
Beispiel #2
0
 //隐藏一个界面
 private void hideOneUI(RectTransform ui)
 {
     TJ_UNITY_TOOL.ScenePanelComponent comp = ui.GetComponent <TJ_UNITY_TOOL.ScenePanelComponent>();
     if (comp && !comp.inShowAni && ui.gameObject.activeSelf)
     {
         comp.onHide();
     }
     else
     {
         ui.gameObject.SetActive(false);
     }
 }