public void Initialize() { TmpText = parent.GetComponentInChildren <TMP_Text>(); TmpText.SetText(labelText); TmpInputField = parent.GetComponentInChildren <TMP_InputField>(); }
public void Initialize(List <string> options) { TmpText = parent.GetComponentInChildren <TMP_Text>(); TmpText.SetText(labelText); TmpDropdown = parent.GetComponentInChildren <TMP_Dropdown>(); TmpDropdown.options.Clear(); TmpDropdown.AddOptions(options); TmpDropdown.RefreshShownValue(); }