add extra Free method overload
This commit is contained in:
parent
2487670cc3
commit
8205f7aa41
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue