Esempio n. 1
0
    private IEnumerator precacheBundles()
    {
        Service.Get <LoadingController>().AddLoadingSystem(this);
        bundlePrecacheManager.StartCaching(precacheComplete);
        yield return(new WaitForSeconds((float)(double)bundlePrecacheManager.Config.BundlePrecacheSeconds));

        precacheComplete();
    }
    private IEnumerator precacheBundles()
    {
        precacheTimer = 0f;
        PlayButton.gameObject.SetActive(value: false);
        ContinuePlayButton.gameObject.SetActive(value: false);
        ReplayIntroButton.gameObject.SetActive(value: false);
        LogoutButton.gameObject.SetActive(value: false);
        MembershipButton.gameObject.SetActive(value: false);
        SettingsButton.gameObject.SetActive(value: false);
        PrecacheLoadingBar.gameObject.SetActive(value: true);
        bundlePrecacheManager.StartCaching(precacheComplete);
        PrecacheTime = (float)(double)bundlePrecacheManager.Config.BundlePrecacheSeconds;
        yield return(new WaitForSeconds(PrecacheTime));

        precacheComplete();
    }