/// <summary> /// クラスTのプールにオブジェクトを返却します。 /// </summary> public static void Return <T>(T element) where T : class => BoxUIPool <T> .Return(element);
/// <summary> /// クラスTのプールからブジェクトを取得します。 /// 取得できなかった場合はnullが返ります。 /// </summary> public static T RentOrNull <T>() where T : class => BoxUIPool <T> .Rent();