2using System.Collections.Generic;
10 public List<T>
list =
new List<T>();
12 public Dictionary<string, T>
map;
32 map =
new Dictionary<string, T>();
40 public T
GetNew(
string id, Transform parent =
null)
50 val.transform.SetParent(parent, worldPositionStays:
false);
61 if (
map.TryGetValue(
id, out var value))
65 value = Resources.Load<T>(
groupId +
"/" + id);
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)