Beispiel #1
0
    // 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>();
        };
    }
Beispiel #3
0
 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();
     }
 }
Beispiel #4
0
 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, "");
         }
     }
 }
Beispiel #5
0
 static void Clone(string CloneName, byte[] ui, Transform root)
 {
     if (ui != null)
     {
         if (CloneName != null)
         {
             if (CloneName != "")
             {
                 LoadBundle();
                 InitialUI();
                 ModelManagerUI.LoadModels(ui, "assTest");
             }
         }
     }
 }
Beispiel #6
0
    // 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);
        };
    }
Beispiel #7
0
 // Start is called before the first frame update
 void Start()
 {
     App.Initial(transform as RectTransform);
     ModelManagerUI.LoadModels(baseUI.bytes, "baseUI");
     UIPage.LoadPage <LoadingPage>();
 }