Фикс hardcrash а при старте

This commit is contained in:
ThomasCharester committed 2025-10-28 20:11:24 +03:00
1 parent 7bc0f3b8fa
commit 6de62720b0
5 files changed
+29 -2

No files matched your search

@@ -25,7 +25,7 @@ namespace Code.App.AppStates
private void SceneLoaded()
{
Context.UIService.LoadingScreen.Hide();
//Context.UIService.LoadingScreen.Hide();
base.EnterState();
}
+1 -1
View File
@@ -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);