Beispiel #1
0
 public static ScenePanel GetInst()
 {
     if (_inst == null)
     {
         ResourceLoader.LoadAssetAndInstantiate("PrefabUI/Main/ScenePanel", SceneLoaderMain.GetInst().mainUIRoot);
     }
     return(_inst);
 }
Beispiel #2
0
 private void BackToMainScene()
 {
     BattleManager.GetInst().IsBattleRun = false;
     SceneLoaderMain.GetInst().ShowMainScene();
     SceneLoaderMain.GetInst().DestroyBattleUI();
     SceneLoader.UnloadBattleScene();
     SearchingPanel.GetInst().ShowPanel(false);
     ResourceMgr.Clear();
 }
 private void OnDestroy()
 {
     _inst = null;
 }
 private void Awake()
 {
     _inst = this;
     StartCoroutine(LoadPanel());
 }
Beispiel #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();
 }
Beispiel #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);
        }
Beispiel #8
0
 private void Awake()
 {
     _inst = this;
     mainUIRoot.sizeDelta = battleUIRoot.sizeDelta = ApplicationConst.uiSize;
     StartCoroutine(LoadPanel());
 }