Exemplo n.º 1
0
    void Awake()
    {
        Instance = this;

        AssetLoader = new BundleAssetLoader();

        ClientHash = AssetLoader.CalculateDomainHash();


        MainAssetCache = new AssetCache();
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        // Thread t=new Thread((() =>
        // {
        //     AsyncClass cl = new AsyncClass();
        // }));
        //t.Start();
        BundleAssetLoader loader = new BundleAssetLoader();

        GameObject t = loader.GetWebAssetSync <GameObject>("TestBundle", Guid.Parse("3601dced-3ddc-46da-87e0-e00aab388e54"));

        Instantiate(t);
    }
Exemplo n.º 3
0
 private void Test3()
 {
     BundleAssetLoader.UnLoad(refIndex);
 }