private void Awake() { missionDropdown.CreateTabs(missionBag); missionDropdown.OnValueChange.AddListener(item => SelectedMission = item as Mission); SelectedMission = missionDropdown.Value as Mission; }
public override void Init() { settings.Resolutions = new Resolutions(); refreshRatesDropdown.CreateTabs(settings.Resolutions .GetRefreshRateLabels()); resolutionDropdown.CreateTabs(settings.Resolutions .GetResolutionLabels() .Reverse()); // Get first refresh rate var firstRefreshRate = (int)refreshRatesDropdown.Value; resolutionDropdown.FilterByRefreshRate(firstRefreshRate); base.Init(); }