private void Awake() { saveButton.onClick.AddListener(() => onSaveButtonClicked()); resetStageButton.onClick.AddListener(() => OnResetClicked?.Invoke()); clearStageButton.onClick.AddListener(() => OnClearClicked?.Invoke()); snapToGridToggle.onValueChanged.AddListener((val) => OnSnapToGridToggleClicked?.Invoke(val)); defaultWdithDownButton.onClick.AddListener(() => OnDefaultWidthDownClicked?.Invoke()); defaultWidthUpButton.onClick.AddListener(() => OnDefaultWidthUpClicked?.Invoke()); saveOrLoadStagePopup.OnLoadStageClicked += onLoadStageClicked; }
private void RaiseClearClickedEvent(AppSelector Selector, EventArgs e) { OnClearClicked?.Invoke(Selector, e); }
protected async void clearClickedHandler() { await OnClearClicked.InvokeAsync(); }