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