コード例 #1
0
ファイル: AlertController.cs プロジェクト: dfengwji/unity
        IEnumerator ShowInspector(AppWindow window, UIParamInfo info)
        {
            isTween = true;
            if (mShowVfx != null)
            {
                mShowVfx.gameObject.SetActive(true);
                mShowVfx.Play();
            }
            if (mCloseVfx != null)
            {
                mCloseVfx.Stop();
                mCloseVfx.gameObject.SetActive(false);
            }

            window.AddListeners();
            yield return(new WaitForSeconds(openDelay));

            window.Appear(info);
            isTween = false;
        }
コード例 #2
0
ファイル: AlertController.cs プロジェクト: dfengwji/unity
        IEnumerator HideInspector()
        {
            isTween = true;
            if (mShowVfx != null)
            {
                mShowVfx.Stop();
                mShowVfx.gameObject.SetActive(false);
            }
            if (mCloseVfx != null)
            {
                mCloseVfx.gameObject.SetActive(true);
                mCloseVfx.Play();
            }

            _alertWindow.RemoveListeners();
            _alertWindow.Clear();
            _alertWindow.Disappear();
            yield return(new WaitForSeconds(hideDelay));

            _alertWindow = null;
            isTween      = false;
        }