public static void Recycle <T>(this T obj) where T : IPoolItem { Pool.Recycle <T>(obj); }
public static int Count <T>(System.Type prefab) where T : IPoolItem { return(Pool.Count <T>(prefab)); }
public static T Spawn <T>(this System.Type prefab) where T : IPoolItem, new() { return(Pool.Spawn <T>(prefab)); }
public static void CreatePool <T>(this System.Type prefab, int capacity) where T : IPoolItem, new() { Pool.CreatePool <T>(prefab, capacity); }
public static void ClearPool <T>(this System.Type prefab) where T : IPoolItem, new() { Pool.ClearPool <T>(prefab); }
public static void RecycleAll <T>(this System.Type prefab) where T : IPoolItem { Pool.RecycleAll <T>(prefab); }
public static void AddToAll <T>(this System.Type prefab, T instance) where T : IPoolItem { Pool.AddToAll <T>(prefab, instance); }