public virtual CDefaultScene ShowScene(string sceneName, bool savePath = true)
 {
     if (string.IsNullOrEmpty(sceneName))
     {
         return(null);
     }
     if (this.m_SceneMaps.ContainsKey(sceneName) == false)
     {
         return(null);
     }
     // ROAD MAP
     if (savePath)
     {
         this.AddRoadMap(sceneName);
     }
     // ROOT OBJECT
     this.m_RootObject = this.m_SceneMaps[sceneName];
     // CURRENT SCENE
     if (this.m_CurrentScene != null &&
         this.m_CurrentScene.sceneObjectName == sceneName)
     {
         this.m_CurrentScene.SetActive(true);
         this.m_CurrentScene.GameObject.transform.SetParent(this.m_TopCanvas.transform);
         return(this.m_CurrentScene);
     }
     // ACTIVE && AWAKE
     foreach (var item in this.m_SceneMaps)
     {
         if (this.m_CurrentScene == null &&
             item.Key == sceneName)
         {
             item.Value.SetActive(true);
             item.Value.OnStartObject();
             item.Value.GameObject.transform.SetParent(this.m_TopCanvas.transform);
             // item.Value.GameObject.transform.SetAsLastSibling();
             item.Value.SetObjectSceneAnimator("IsShow", true);
             this.m_CurrentScene = item.Value;
         }
         else
         {
             this.CloseScene(item.Key);
         }
     }
     // RETURN
     return(this.m_CurrentScene);
 }
 public virtual CDefaultPopup ShowPopup(string popupName, bool savePath = true)
 {
     if (string.IsNullOrEmpty(popupName))
     {
         return(null);
     }
     if (this.m_PopupMaps.ContainsKey(popupName) == false)
     {
         return(null);
     }
     // ROAD MAP
     if (savePath)
     {
         this.AddRoadMap(popupName);
     }
     // ROOT OBJECT
     this.m_RootObject = this.m_PopupMaps[popupName];
     // CURRENT POPUP
     if (this.m_CurrentPopup != null &&
         this.m_CurrentPopup.sceneObjectName == popupName)
     {
         this.m_CurrentPopup.SetActive(true);
         this.m_CurrentPopup.SetObjectSceneAnimator("IsShow", true);
         this.m_CurrentPopup.GameObject.transform.SetParent(this.m_TopCanvas.transform);
         this.m_CurrentPopup.GameObject.transform.SetAsLastSibling();
         return(this.m_CurrentPopup);
     }
     // ACTIVE && AWAKE
     if (this.m_PopupMaps.ContainsKey(popupName))
     {
         this.m_PopupMaps[popupName].SetActive(true);
         this.m_PopupMaps[popupName].OnStartObject();
         this.m_PopupMaps[popupName].SetObjectSceneAnimator("IsShow", true);
         this.m_PopupMaps[popupName].GameObject.transform.SetParent(this.m_TopCanvas.transform);
         this.m_PopupMaps[popupName].GameObject.transform.SetAsLastSibling();
         this.m_CurrentPopup = this.m_PopupMaps[popupName];
     }
     // RETURN
     return(this.m_CurrentPopup);
 }