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); }
public void OnEnable() { graphicsSettings = GetComponentInParent <UI_GraphicsPresets>(); SetDropdownMenu(); }