public void ResetDropDown(ref UILabel instance) { GameObject go = instance.transform.parent.parent.gameObject; UIExPopupList list = go?.GetComponent <UIExPopupList>(); if (list != null) { instance.text = list.value; } }
private static bool _DropDown(Transform tr, string name) { UIExPopupList list = tr.parent.parent.gameObject.GetComponent <UIExPopupList>(); return(list.name.UP() == name.UP()); }