Beispiel #1
0
        private void OnButtonClick(ButtonValue value)
        {
            if (_dialogListener != null)
            {
                _dialogListener.OnClick(value);
            }

            OnBeforeDestroy?.Invoke();
            Destroy(this.gameObject);
        }
 private void selfDestruct()
 {
     OnBeforeDestroy?.Invoke();
     Destroy(gameObject);
 }