示例#1
0
 public static void Recycle <T>(this T obj) where T : IPoolItem
 {
     Pool.Recycle <T>(obj);
 }
示例#2
0
 public static int Count <T>(System.Type prefab) where T : IPoolItem
 {
     return(Pool.Count <T>(prefab));
 }
示例#3
0
 public static T Spawn <T>(this System.Type prefab) where T : IPoolItem, new()
 {
     return(Pool.Spawn <T>(prefab));
 }
示例#4
0
 public static void CreatePool <T>(this System.Type prefab, int capacity) where T : IPoolItem, new()
 {
     Pool.CreatePool <T>(prefab, capacity);
 }
示例#5
0
 public static void ClearPool <T>(this System.Type prefab) where T : IPoolItem, new()
 {
     Pool.ClearPool <T>(prefab);
 }
示例#6
0
 public static void RecycleAll <T>(this System.Type prefab) where T : IPoolItem
 {
     Pool.RecycleAll <T>(prefab);
 }
示例#7
0
 public static void AddToAll <T>(this System.Type prefab, T instance) where T : IPoolItem
 {
     Pool.AddToAll <T>(prefab, instance);
 }