void Init() { dropdown = GetComponent <Dropdown>(); if (dropdown_big_cat != null) { dropdown_big_cat.dropdown.onValueChanged.AddListener((int value) => { string prev_cat = dropdown.options[dropdown.value].text; Update_Options(dropdown_big_cat.Get_Value()); for (int i = 0; i < dropdown.options.Count; i++) { if (dropdown.options[i].text == prev_cat) { dropdown.value = i; break; } } }); } if (static_dropdown_category_list == null) { static_dropdown_category_list = new List <Dropdown_Category>(); } static_dropdown_category_list.Add(this); }
public void Btn_Show_Calendar() { string big_cat = select_big_cat.Get_Value(); string category = select_category.Get_Value(); int activity_index = select_activity.Get_Activity_Index(); var data = new Filtering_Data(big_cat, category, activity_index); calendar.Update_Calendar(default, data);