public override void LoadCallBack() { Debug.Log("LoadCallBack"); ListenEvent("Click", Click); ListenEvent("ClickClose", ClickClose); text = FindVariable("text"); text.SetVlaue("这是主界面"); }
public override void OpenCallBack() { if (tab1.GetComponent <Toggle>().isOn) { OnToggleChange((int)TabIndex.Test1View); } if (tab2.GetComponent <Toggle>().isOn) { OnToggleChange((int)TabIndex.Test2View); } if (tab3.GetComponent <Toggle>().isOn) { OnToggleChange((int)TabIndex.Test3View); } text.SetVlaue("这是主界面"); Debug.Log("OpenCallBack"); }
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()); }