тестирование

This commit is contained in:
lapich committed 2026-10-24 20:54:38 +03:00
1 parent 11d290d572
commit 570e778cda
39 files changed
+2007 -97

No files matched your search

+12 -1
View File
@@ -60,6 +60,9 @@ public class MainMenuManager : MonoBehaviour
public void PlayGame()
{
PlayerPrefs.SetInt("PlayIntroCutscene", 1);
PlayerPrefs.Save();
if (!string.IsNullOrEmpty(gameSceneName))
{
StartCoroutine(LoadSceneRoutine(gameSceneName));
@@ -70,6 +73,13 @@ public class MainMenuManager : MonoBehaviour
}
}
public void PlayPrologue()
{
PlayerPrefs.SetInt("PlayIntroCutscene", 1);
PlayerPrefs.Save();
PlayGame();
}
public void OpenSettings()
{
if (mainMenuPanel != null) mainMenuPanel.SetActive(false);
@@ -135,8 +145,9 @@ public class MainMenuManager : MonoBehaviour
{
loadingText.text = "Инициализация локации...";
}
yield return new WaitForSecondsRealtime(0.35f);
yield return new WaitForSecondsRealtime(0.2f);
asyncLoad.allowSceneActivation = true;
break;
}
yield return null;