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