コード例 #1
0
    void OnDownload()
    {
        string url = Path.Combine(BaseURL, string.Format("{0}{1}", assetBundleName, URLSuffix));

#if BUILD_TYPE_DEBUG
        Debug.Log("CALL AssetBundler#OnDownload:" + url);
#endif

        www = new WWW(url);
        www.threadPriority = ThreadPriority.Low;
        response           = AssetBundlerResponse.Create(assetBundleName);

        fsm.SendFsmEvent("DO_WAIT");
    }
コード例 #2
0
    void OnLoadFromCache()
    {
#if BUILD_TYPE_DEBUG
        Debug.Log("CALL AssetBundler#OnLoadFromCache: " + assetBundleName);
#endif
        response = AssetBundlerResponse.Create(assetBundleName);

        if (response.AssetBundle == null)
        {
            fsm.SendFsmEvent("FAIL");
            return;
        }

        fsm.SendFsmEvent("SUCCESS");
    }