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

This commit is contained in:
ThomasCharester authored and Loša Ceviel committed 2025-10-28 22:11:02 +03:00
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();
}
+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);