Фикс 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

+13
View File
@@ -0,0 +1,13 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/contentModel.xml
/projectSettingsUpdater.xml
/modules.xml
/.idea.CourierOldRe.iml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>
Generated
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
@@ -18,7 +18,7 @@ namespace Code.App.AppStates
private void SceneLoaded() private void SceneLoaded()
{ {
//Context.UIService.LoadingScreen.Hide();
base.EnterState(); base.EnterState();
} }
+1 -1
View File
@@ -24,7 +24,7 @@ namespace Code.UI
public void SwitchPanelTo(UIPanel uiPanel) public void SwitchPanelTo(UIPanel uiPanel)
{ {
if (CurrentPanel.gameObject != null) if (CurrentPanel != null)
Object.Destroy(CurrentPanel.gameObject); Object.Destroy(CurrentPanel.gameObject);
CurrentPanel = Object.Instantiate(_uiPanelsPrefabs[(int)uiPanel], _canvas.transform); CurrentPanel = Object.Instantiate(_uiPanelsPrefabs[(int)uiPanel], _canvas.transform);