public static void Add <T>(object key, T component) where T : Component { ObjectItem item = new ObjectItem(component.gameObject, component); components.Add(key, Set(item)); }
public static void Add(object key, GameObject obj) { ObjectItem item = new ObjectItem(obj); objects.Add(key, Set(item)); }