private void OnButtonClick(ButtonValue value) { if (_dialogListener != null) { _dialogListener.OnClick(value); } OnBeforeDestroy?.Invoke(); Destroy(this.gameObject); }
private void selfDestruct() { OnBeforeDestroy?.Invoke(); Destroy(gameObject); }