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