Пример #1
0
 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;
 }
Пример #2
0
 public void ResetClickedEvent() => OnResetClicked?.Invoke();