コード例 #1
0
ファイル: AlertController.cs プロジェクト: dfengwji/unity
 IEnumerator OpenDelay(AppWindow window, UIParamInfo info)
 {
     while (!window.IsStarted)
     {
         yield return(null);
     }
     window.AddListeners();
     window.Appear(info);
 }
コード例 #2
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;
        }