public void Click() { if (ButtonClickEvent != null) { ButtonClickEvent.Invoke(); } }
/// <summary> /// Executed when any window button is pressed /// </summary> /// <param name="button">Link to the pressed button </param> public virtual void OnButtonClick(Button button) { if (button != null) { ModalResult = button.ModalResult == ModalWindowResult.None?ModalWindowResult.Cancel: button.ModalResult; if (MainWindow.ActiveWindow == this) { Close(); } ButtonClickEvent?.Invoke(button); } }
public virtual void OnPointerClick(PointerEventData eventData) { if (!IsInteractable()) { return; } GameMainManager.instance.audioManager.PlaySound(AudioNameEnum.button_click); if (isInteractive) { Interacted(); onClick.Invoke(); } }
private void OnMouseLeftButtonReleasedInsideRectangle(object sender, EventArgs e) { ButtonClickEvent.Invoke(this, new EventArgs()); }
public static void SendButtonClick() { ButtonClickEvent?.Invoke(); }
public void ButtonClickedEvent(Transform temp) { ButtonClickEvent?.Invoke(temp); }
private void OnClick() { OnButtonClick.Invoke(); }
private void OnButtonClick() { OnDialogButtonClick?.Invoke(); }