/// <summary> /// Initialize the option. /// </summary> /// <param name="select">Select.</param> /// <param name="text">Text.</param> public void Initialize(UISelectField select, Text text) { this.selectField = select; this.textComponent = text; this.m_HasInitialized = true; this.OnEnable(); }
protected void Awake() { this.m_Select = this.gameObject.GetComponent <UISelectField>(); }