示例#1
0
 /// <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();
 }
示例#2
0
 protected void Awake()
 {
     this.m_Select = this.gameObject.GetComponent <UISelectField>();
 }