예제 #1
0
 static void CloneAll(byte[] ui, Transform root)
 {
     if (ui != null)
     {
         LoadBundle();
         ModelManager2D.Initial();
         var all    = ModelManager2D.LoadModels(ui, "assTest");
         var models = all.models.child;
         for (int i = 0; i < models.Count; i++)
         {
             EditorModelManager2D.LoadToGame(models[i], null, root, "");
         }
     }
 }
예제 #2
0
 static void Clone(string Assetsname, string CloneName, byte[] ui, Transform root)
 {
     if (ui != null)
     {
         if (Assetsname != null)
         {
             if (CloneName != null)
             {
                 if (CloneName != "")
                 {
                     LoadBundle();
                     ModelManager2D.Initial();
                     ModelManager2D.LoadModels(ui, "assTest");
                     EditorModelManager2D.LoadToGame(Assetsname, CloneName, null, root, "");
                 }
             }
         }
     }
 }