Beispiel #1
0
    void Awake()
    {
        //Debug.Log("Awake UI_QualityBase");
        camera = Camera.main;
        slider = GetComponent <Slider>();

        graphicsSettings = GetComponentInParent <UI_GraphicsPresets>();
        graphicsSettings.FastestPresetEvent.AddListener(GraphicsPresetFastest);
        graphicsSettings.FastPresetEvent.AddListener(GraphicsPresetFast);
        graphicsSettings.SimplePresetEvent.AddListener(GraphicsPresetSimple);
        graphicsSettings.GoodPresetEvent.AddListener(GraphicsPresetGood);
        graphicsSettings.BeautifulPresetEvent.AddListener(GraphicsPresetBeautiful);
        graphicsSettings.FantasticPresetEvent.AddListener(GraphicsPresetFantastic);
    }
Beispiel #2
0
 public void OnEnable()
 {
     graphicsSettings = GetComponentInParent <UI_GraphicsPresets>();
     SetDropdownMenu();
 }