private void Finalize(PopupResultType resultType) { this.Log($"Finalize popup with resultType '{resultType.ToString()}'.", LogLevel.DevelopmentInfo); _resultCallback?.Invoke(new PopupResult(resultType, _customPopupParam, _neverShowAgain)); CoreGameEventsManager.Unsubscribe <HardwareBackButtonEvent>(OnHardwareBackButtonEvent); OnEnableDisable?.Invoke(false); }
public PopupResult(PopupResultType resultType, string customParam, bool neverShowAgain = false) { ResultType = resultType; CustomParam = customParam; NeverShowAgain = neverShowAgain; }