Example #1
0
 public static void RecordObjects(MapData inst, GameObject g)
 {
     for (int i = 0; i < g.transform.childCount; i++)
     {
         var       child = g.transform.GetChild(i);
         MapObject obj   = new MapObject(child);
         obj.objectName = GetPrefabAssetPath(child.gameObject);
         inst.AddObject(obj);
     }
 }