public static ScenePanel GetInst() { if (_inst == null) { ResourceLoader.LoadAssetAndInstantiate("PrefabUI/Main/ScenePanel", SceneLoaderMain.GetInst().mainUIRoot); } return(_inst); }
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()); }
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(); }
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); }
private void Awake() { _inst = this; mainUIRoot.sizeDelta = battleUIRoot.sizeDelta = ApplicationConst.uiSize; StartCoroutine(LoadPanel()); }