Example #1
0
    protected override void Awake()
    {
        //运行开始加载manifest
        IABManifestLoader manifest = new IABManifestLoader(ManifestLoadComplete);

        StartCoroutine(manifest.LoadManifet());
    }
Example #2
0
    protected override void Start()
    {
        UIVariable name = variableTable.FindVariable("ddddd");

        //print(name.name);
        name.SetVlaue("测试一");
        cube = nameTable.FindObj("cube");
        cube.SetActive(false);

        //table.ListenEvent("Click", Click);
        //table.ListenEvent("ClickThree", ClickThree);
        //
        GlobalEventSystem.Bind(GlobalEventType.test, ClickThree);
        // GlobalEventSystem.Bind(GlobalEventType.test2, ClickTwo);

        //TimeControl timer = TimeControl.CreaterTimer();
        //timer.StartTiming(10, Complete, Func, 3, true, false, true);

        string path = IPathTool.GetAssetBundlePath();//.Substring(IPathTool.GetAssetBundlePath().IndexOf("Assets"));


        //路径/斜
        //AssetBundle ab = AssetBundle.LoadFromFile(Application.dataPath + @"/StreamingAssets/Windows/sceneone/one/cube.unity3d");
        //Debug.Log(Application.dataPath + @"/StreamingAssets/Windows/sceneone/one/cube.unity3d");
        //Debug.Log(IPathTool.GetAssetBundlePath());
        //IABResLoader abloader = new IABResLoader(ab);

        // GameObject ob = abloader["Cube"] as GameObject;
        //Instantiate(ob, transform);
        //abloader.Dispose();

        //abScene.LoadAsset("Cube.prefab", ClickTwo, Complete);

        //abLoader = new IABLoader(path);
        // print(path);

        //abLoader.OnLoadFinish(Click);
        //abLoader.OnLoad(ClickTwo);
        //StartCoroutine(abLoader.CommonLoad());


        //print(IPathTool.GetWWWAssetBundlePath() +"/" + "sceneone/one/cube.unity3d");

        //ab = new IABLoader(bundleName, Complete1, null);
        //StartCoroutine(ab.CommonLoad());

        // relation = new IABRelationManager(bundleName, Complete);
        //StartCoroutine(relation.LoadAssetBundle());

        //manifest = new IABManifestLoader(Complect3);
        //StartCoroutine(manifest.LoadManifet());


        //string sceneName = "SceneOne";
        //IABScenceManager abScene = new IABScenceManager(sceneName);

        //abScene.ReadConfiger(sceneName);



        IABManifestLoader manifest = new IABManifestLoader(ManifestLoadComplete);

        StartCoroutine(manifest.LoadManifet());
    }