Пример #1
0
        public virtual void CloseView()
        {
            if (gameObject != null)
            {
                openState = false;
                HandleBeforeCloseView();
                CancelUpdateHandler();
                ViewManager.UnRegister(this);

                if (closeTween != null)                 //播放关闭动画
                {
                    EventDelegate.Add(closeTween.OnEnd, CloseViewHelp);
                    closeTween.Begin();
                }
                else if (showTween != null)
                {
                    EventDelegate.Add(showTween.onFinished, CloseViewHelp);
                    showTween.PlayReverse();
                }
                else
                {
                    CloseViewHelp();
                }

                if (playClosedSound)
                {
                    SoundMgr.Instance.PlayUIAudio(SoundId.Sound_ConfirmClose);
                }
            }
            IsOpened = false;
        }
Пример #2
0
    IEnumerator EvaluationProcess()
    {
        yield return(StartCoroutine(iPlay.Begin()));

        yield return(StartCoroutine(Evaluating(0, SUCCESS)));
    }