Beispiel #1
0
        protected IEnumerator CoProcShowPanel(int iSortOrder)
        {
            // if (_bIsShowCurrent) yield break;

            _bIsShowCurrent     = true;
            _bIsPlayUIAnimation = true;
            yield return(_pPanel.StartCoroutine(_pPanel.IUIPanel_OnShowPanel_PlayingAnimation(iSortOrder)));

            _bIsPlayUIAnimation = false;

            if (_OnFinishAnimation != null)
            {
                _OnFinishAnimation();
                _OnFinishAnimation = null;
            }
        }
Beispiel #2
0
        // ==========================================================================================

        protected IEnumerator CoProcShowPanel(int iSortOrder)
        {
            // if (_bIsShowCurrent) yield break;

            _pPanel.gameObject.SendMessage("OnUIEvent_Show", SendMessageOptions.DontRequireReceiver);
            _bIsShowCurrent     = true;
            _bIsPlayUIAnimation = true;
            yield return(_pPanel.StartCoroutine(_pPanel.IUIPanel_OnShowPanel_PlayingAnimation(iSortOrder)));

            _bIsPlayUIAnimation = false;

            if (_OnFinishAnimation != null)
            {
                _OnFinishAnimation();
                _OnFinishAnimation = null;
            }

            _pPanel.IUIPanel_OnShow();
        }