public void TappedWithAction(PopoutWindowAlertActionType type) { if (preventMultipleTaps) { if (_isDoingAction) { return; } } StartCoroutine(IETappedWithAction(type)); }
public IEnumerator IETappedWithAction(PopoutWindowAlertActionType type) { _isDoingAction = true; if (_action != null) { _action.Invoke(this, type); } if (_dismissAfterTapBtn) { StartCoroutine(Dismiss()); } yield return(new WaitForSeconds(0.5f)); _isDoingAction = false; }