Фикс hardcrash а при старте
This commit is contained in:
1 parent
085429d5ca
commit
db541fed8a
5 files changed
+29
-2
No files matched your search
@@ -18,7 +18,7 @@ namespace Code.App.AppStates
|
||||
|
||||
private void SceneLoaded()
|
||||
{
|
||||
|
||||
//Context.UIService.LoadingScreen.Hide();
|
||||
|
||||
base.EnterState();
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace Code.UI
|
||||
|
||||
public void SwitchPanelTo(UIPanel uiPanel)
|
||||
{
|
||||
if (CurrentPanel.gameObject != null)
|
||||
if (CurrentPanel != null)
|
||||
Object.Destroy(CurrentPanel.gameObject);
|
||||
|
||||
CurrentPanel = Object.Instantiate(_uiPanelsPrefabs[(int)uiPanel], _canvas.transform);
|
||||
|
||||
Reference in new issue
Block a user