Пример #1
0
    public void openOptions()
    {
        options.SetActive(true);
        options.GetComponent <OptionController>().loadSettingsUI();
        cancel();

        UtilBools.pausedBools(Game.current, true);
        UtilBools.paused  = false;
        UtilBools.options = true;
    }
Пример #2
0
    public void justExit()
    {
        openAll();
        closeAll();

        UtilBools.worldOptions = false;
        UtilBools.pausedBools(Game.current, false);

        gameObject.SetActive(false);
    }
Пример #3
0
    //unused
    public void saveExit()
    {
        openAll();

        //Saving
        miscCon.saveSettings();
        savedFeedback();
        closeAll();

        UtilBools.worldOptions = false;
        UtilBools.pausedBools(Game.current, false);

        gameObject.SetActive(false);
    }
Пример #4
0
    public void openWorldOptions()
    {
        GC.audioMixer.playButtonSFX();
        if (!UtilBools.isPuzzle)
        {
            worldOptions.SetActive(true);
            worldOptions.GetComponent <WorldOptionsController>().loadSettingsUI();

            UtilBools.pausedBools(Game.current, true);
            UtilBools.paused       = false;
            UtilBools.worldOptions = true;
        }
        else
        {
            print("is puzzle duh");
        }
    }
Пример #5
0
    public void openWorldOptions()
    {
        if (!UtilBools.isPuzzle)
        {
            worldOptions.SetActive(true);
            worldOptions.GetComponent <WorldOptionsController>().loadSettingsUI();
            cancel();

            UtilBools.pausedBools(Game.current, true);
            UtilBools.paused       = false;
            UtilBools.worldOptions = true;
        }
        else
        {
            print("is puzzle");
        }
    }
Пример #6
0
 public void cancel()
 {
     UtilBools.pausedBools(Game.current, false);
     UtilBools.paused = false;
     pausedContainer.SetActive(false);
 }