// Start is called before the first frame update void Start() { App.Initial(transform as RectTransform); ModelManagerUI.LoadModels(baseUI.bytes, "baseUI"); ElementAsset.LoadAssetsAsync("picture.unity3d").PlayOver = (o, e) => { UIPage.LoadPage <LoadingPage>(); //ShowPopWindow<PropKeyWin>(); }; }
// Start is called before the first frame update void Start() { App.Initial(transform as RectTransform); ModelManagerUI.LoadModels(baseUI.bytes, "baseUI"); #if UNITY_EDITOR AssetBundle.UnloadAllAssetBundles(true); #endif ElementAsset.LoadAssetsAsync("base.unity3d").PlayOver = (o, e) => { UIPage.LoadPage <TestPage>(); }; }
static void CloneAll(byte[] ui, Transform root) { if (ui != null) { LoadBundle(); InitialUI(); var all = ModelManagerUI.LoadModels(ui, "assTest"); ModelElement element = new ModelElement(); element.Load(all.models.ModData); element.Apply(); } }
static void CloneAll(byte[] ui, Transform root) { if (ui != null) { LoadBundle(); InitialUI(); var all = ModelManagerUI.LoadModels(ui, "assTest"); var models = all.models.child; for (int i = 0; i < models.Count; i++) { EditorModelManager.LoadToGame(models[i], null, root, ""); } } }
static void Clone(string CloneName, byte[] ui, Transform root) { if (ui != null) { if (CloneName != null) { if (CloneName != "") { LoadBundle(); InitialUI(); ModelManagerUI.LoadModels(ui, "assTest"); } } } }
// Start is called before the first frame update void Start() { Instance = this; // KcpDataControll.Instance.Connection("127.0.0.1",8886); App.Initial(transform as RectTransform); ModelManagerUI.LoadModels(baseUI.bytes, "baseUI"); #if UNITY_EDITOR AssetBundle.UnloadAllAssetBundles(true); #endif ElementAsset.LoadAssetsAsync("base.unity3d").PlayOver = (o, e) => { loadOver = true; //if (hotData != null) // UIPage.LoadPage<HotFixEntry>(hotData); UIPage.LoadPage <HotFixEntry>(hotfix.bytes); }; }
// Start is called before the first frame update void Start() { App.Initial(transform as RectTransform); ModelManagerUI.LoadModels(baseUI.bytes, "baseUI"); UIPage.LoadPage <LoadingPage>(); }