add extra Free method overload

This commit is contained in:
Gered 2013-08-22 15:29:01 -04:00
parent 2487670cc3
commit 8205f7aa41

View file

@ -74,6 +74,12 @@ namespace Blarg.GameFramework.Support
var pool = GetPool(typeof(T)); var pool = GetPool(typeof(T));
pool.Free(obj); pool.Free(obj);
} }
public static void Free(Type type, object obj)
{
var pool = GetPool(type);
pool.Free(obj);
}
} }
} }