Example #1
0
 public static PrefabPool CreatePool <T>(this T prefab) where T : Component
 {
     return(SpacePool.CreatePool(prefab, 0));
 }
Example #2
0
 public static PrefabPool CreatePool(this GameObject prefab)
 {
     return(SpacePool.CreatePool(prefab, 0));
 }
Example #3
0
 public static PrefabPool CreatePool(this GameObject prefab, int initialPoolSize)
 {
     return(SpacePool.CreatePool(prefab, initialPoolSize));
 }
Example #4
0
 public static PrefabPool CreatePool <T>(this T prefab, int initialPoolSize) where T : Component
 {
     return(SpacePool.CreatePool(prefab, initialPoolSize));
 }