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