示例#1
0
        public override bool Update()
        {
            if (m_Request != null)
            {
                return(false);
            }

            QLoadedAB bundle = QABMgr.GetLoadedAssetBundle(m_AssetBundleName, out m_DownloadingError);

            if (bundle != null)
            {
                if (m_IsAdditive)
                {
                    m_Request = Application.LoadLevelAdditiveAsync(m_LevelName);
                }
                else
                {
                    m_Request = Application.LoadLevelAsync(m_LevelName);
                }
                return(false);
            }
            else
            {
                return(true);
            }
        }
示例#2
0
        // Returns true if more Update calls are required.
        public override bool Update()
        {
            if (m_Request != null)
            {
                return(false);
            }

            QLoadedAB bundle = QABMgr.GetLoadedAssetBundle(m_AssetBundleName, out m_DownloadingError);

            if (bundle != null)
            {
                ///@TODO: When asset bundle download fails this throws an exception...
                m_Request = bundle.m_AssetBundle.LoadAssetAsync(m_AssetName, m_Type);
                return(false);
            }
            else
            {
                return(true);
            }
        }
示例#3
0
        // Returns true if more Update calls are required.
        public override bool Update()
        {
            if (loadFinish)
            {
                return(false);
            }


            bundle = QABMgr.GetLoadedAssetBundle(m_AssetBundleName, out m_DownloadingError);
            if (bundle != null)
            {
                ///@TODO: When asset bundle download fails this throws an exception...
                loadFinish = true;
                return(false);
            }
            else
            {
                return(true);
            }
        }