private IEnumerator OpenAsync() { if (_tweens.Count > 0) { foreach (var tween in _tweens) { if (tween != null && tween.isActiveAndEnabled && tween.StartAction != TweenStartAction.DoNothing) { tween.Open(); } } foreach (var tween in _tweens) { if (tween != null && tween.isActiveAndEnabled) { while (tween.IsTweening) { yield return(null); } } } } _state = FormState.Opened; _processRoutine = null; OnOpened(); if (OpenedEvent != null) { OpenedEvent.Invoke(); } }
protected void OpenedEventInvoke() { _state = UITweenState.Opened; if (OpenedEvent != null) { OpenedEvent.Invoke(this); } }
internal void Opened() { GameManager.OpenedPack(generation, cardInThisPack); OpenedEvent?.Invoke(generation); }