Example #1
0
    public static void Add <T>(object key, T component) where T : Component
    {
        ObjectItem item = new ObjectItem(component.gameObject, component);

        components.Add(key, Set(item));
    }
Example #2
0
    public static void Add(object key, GameObject obj)
    {
        ObjectItem item = new ObjectItem(obj);

        objects.Add(key, Set(item));
    }