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; }
public void ResetClickedEvent() => OnResetClicked?.Invoke();