public void AddButton(string label, int index)
        {
            var button = GetButton();

            button.Text = label;
            button.OnClick.AddListener(() => OnClick.Dispatch(index));
        }
示例#2
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (hideOnClick)
     {
         OnClick.Dispatch();
     }
 }
示例#3
0
 void On_Original_Clicked()
 {
     OnClick.Dispatch(this);
 }
示例#4
0
文件: HButton.cs 项目: lxynb/MiniGame
 public virtual void TriggerClick()
 {
     OnClick.Dispatch();
 }
示例#5
0
文件: HToggle.cs 项目: lxynb/MiniGame
 void ClickHandler(bool value)
 {
     OnClick.Dispatch(value);
     MoveToggle(value, true);
 }
示例#6
0
 public void Click()
 {
     OnClick.Dispatch();
 }