public void Initialize()
        {
            TmpText = parent.GetComponentInChildren <TMP_Text>();
            TmpText.SetText(labelText);

            TmpInputField = parent.GetComponentInChildren <TMP_InputField>();
        }
Beispiel #2
0
        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();
        }