2using System.Collections.Generic;
9 public static List<Func<string, T>>
assetLoaders =
new List<Func<string, T>> { Resources.Load<T> };
13 public List<T>
list =
new List<T>();
15 public Dictionary<string, T>
map;
35 map =
new Dictionary<string, T>();
43 public T
GetNew(
string id, Transform parent =
null)
53 val.transform.SetParent(parent, worldPositionStays:
false);
64 if (
map.TryGetValue(
id, out var value))
68 string arg =
groupId +
"/" + id;
static List< Func< string, T > > assetLoaders
DynamicAsset(string groupId, bool instantiate)
T GetNew(string id, Transform parent=null)
Dictionary< string, T > map
static Transform Spawn(string id, string path, Transform parent)