public void SetUp()
    {
        width    = new int[5];
        width[0] = 1920;
        width[1] = 1600;
        width[2] = 1280;
        width[3] = 960;
        width[4] = 800;

        height    = new int[5];
        height[0] = 1080;
        height[1] = 900;
        height[2] = 720;
        height[3] = 540;
        height[4] = 450;


        OptionsData data = SaveLoadSystem.LoadOptions();

        qualityDropdown.value    = data.quality;
        resolutionDropdown.value = data.resolution;
        fullscreenToggle.isOn    = data.fullscreen;
        music.value    = data.music;
        ambience.value = data.ambience;
        effects.value  = data.effects;


        //SetGraphicsSettings();
        SetAudioSettings();
    }
Exemple #2
0
    void Start()
    {
        width = new int[] {
            1920,
            1600,
            1366,
            1360,
            1280
        };

        height = new int[] {
            1080,
            900,
            768,
            768,
            720
        };

        LoadOptions(SaveLoadSystem.LoadOptions());

        systemGenerationModeMain.seedText.text = ((int)System.DateTime.Now.Ticks).ToString();
        systemGenerationModeMain.GenerateSystem();
    }