Ejemplo n.º 1
0
    private bool isLoading; // Загрузка другой сцены

    private void Awake()
    {
        GameManager.Initialize();
        GameAudio.StartAudiosEvent(audioClips, 1, true);
        GameMenu.DisactivateGameMenuEvent();

        ButtonStart.Select();
        if (PlayerPrefs.HasKey("GameComplete"))
        {
            StaticSettings.isGameComplete = Convert.ToBoolean(PlayerPrefs.GetInt("GameComplete"));
        }
        if (StaticSettings.isGameComplete)
        {
            ButtonGalacticCoordinates.interactable = true;
        }

        if (Saves.GetAutosaveExists())
        {
            ButtonContinue.interactable = true;
        }
    }