Пример #1
0
        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();
            }
        }
Пример #2
0
 protected void OpenedEventInvoke()
 {
     _state = UITweenState.Opened;
     if (OpenedEvent != null)
     {
         OpenedEvent.Invoke(this);
     }
 }
Пример #3
0
 internal void Opened()
 {
     GameManager.OpenedPack(generation, cardInThisPack);
     OpenedEvent?.Invoke(generation);
 }