Beispiel #1
0
    protected override void WindowOpened()
    {
        base.WindowOpened();
        base.StopAllCoroutines();
        if (null != ClassSingleton <FaceChatNotificationAccessor> .Instance.faceChatNotification)
        {
            ClassSingleton <FaceChatNotificationAccessor> .Instance.faceChatNotification.StopGetHistoryIdList();
        }
        SoundMng.Instance().StopBGM(0.5f, null);
        GUIMain.ResetBGM();
        TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>();

        if (tutorialObserver != null)
        {
            UnityEngine.Object.Destroy(tutorialObserver.gameObject);
        }
        TutorialUI tutorialUI = UnityEngine.Object.FindObjectOfType <TutorialUI>();

        if (tutorialUI != null)
        {
            UnityEngine.Object.Destroy(tutorialUI.gameObject);
        }
        AppCoroutine appCoroutine = UnityEngine.Object.FindObjectOfType <AppCoroutine>();

        if (appCoroutine != null)
        {
            UnityEngine.Object.Destroy(appCoroutine.gameObject);
        }
        FarmCameraControlForCMD.ClearRefCT();
        Resources.UnloadUnusedAssets();
        FarmCameraControlForCMD.Off();
        GUIMain.DestroyAllDialog(this);
        GUICollider.InitAllCollider();
        GUIMain.BarrierReset();
        Singleton <GUIManager> .Instance.UseOutsideTouchControl = false;
        FarmRoot farmRoot = UnityEngine.Object.FindObjectOfType <FarmRoot>();

        if (farmRoot != null)
        {
            UnityEngine.Object.Destroy(farmRoot.gameObject);
        }
        GUIFadeControll.StartFadeIn(1f);
        CMDWebWindow.DeleteWebView();
        GUIMain.ReqScreen("UIMaintenance", string.Empty);
    }
Beispiel #2
0
    public IEnumerator StartScreenFadeIn(Action finish = null)
    {
        GUIFadeControll.StartFadeIn(0f);
        GameObject    fadeObj       = GUIManager.LoadCommonGUI("Render2D/SquaresROOT", Singleton <GUIMain> .Instance.gameObject);
        SquaresEffect squaresEffect = fadeObj.GetComponent <SquaresEffect>();

        squaresEffect.Initialize();
        while (fadeObj != null)
        {
            yield return(null);
        }
        if (finish != null)
        {
            finish();
        }
        GUIScreenHome.isManualScreenFadeIn = false;
        yield break;
    }
Beispiel #3
0
    private IEnumerator InitSHowGUI()
    {
        yield return(base.StartCoroutine(this.PreloadSpawnMonsters()));

        this.InitAndSpawnOthers();
        GUIFadeControll.StartFadeIn(1f);
        RestrictionInput.EndLoad();
        int size  = 0;
        int count = AssetDataMng.Instance().GetDownloadAssetBundleCount(string.Empty, out size);

        this.DownloadConfirmation(size, false);
        while (!this.closeDownloadPopup)
        {
            yield return(null);
        }
        yield return(base.StartCoroutine(this.StartDownload(count)));

        base.StartCoroutine(this.EndAssetBundleDownload());
        yield break;
    }