Example #1
0
 public static ScenePanel GetInst()
 {
     if (_inst == null)
     {
         ResourceLoader.LoadAssetAndInstantiate("PrefabUI/Main/ScenePanel", SceneLoaderMain.GetInst().mainUIRoot);
     }
     return(_inst);
 }
Example #2
0
 private void BackToMainScene()
 {
     BattleManager.GetInst().IsBattleRun = false;
     SceneLoaderMain.GetInst().ShowMainScene();
     SceneLoaderMain.GetInst().DestroyBattleUI();
     SceneLoader.UnloadBattleScene();
     SearchingPanel.GetInst().ShowPanel(false);
     ResourceMgr.Clear();
 }
Example #3
0
 private void OnDestroy()
 {
     _inst = null;
 }
Example #4
0
 private void Awake()
 {
     _inst = this;
     StartCoroutine(LoadPanel());
 }
Example #5
0
 public static void EnterBattle()
 {
     m_sAddSceneName = "BattleNormal";           //SectionData.GetSceneName(m_iSectionID, m_eBattleType);
     m_sSpawnName    = "Spawn/Spawn001";         //SectionData.GetSceneSpawn(m_iSectionID, m_eBattleType);
     SceneLoaderMain.GetInst().LoadBattleScene();
 }
Example #6
0
 private void OnClickSingle()
 {
     SceneLoader.IsSingle = true;
     SceneLoaderMain.GetInst().LoadBattleScene();
 }
        public static BattleTaskFinishPanel GetInst()
        {
            if (_inst == null)
            {
                ResourceLoader.LoadAssetAndInstantiate("PrefabUI/Battle/BattleTaskFinishPanel", SceneLoaderMain.GetInst().battleUIRoot);
            }

            return(_inst);
        }
Example #8
0
 private void Awake()
 {
     _inst = this;
     mainUIRoot.sizeDelta = battleUIRoot.sizeDelta = ApplicationConst.uiSize;
     StartCoroutine(LoadPanel());
 }