public static void CreatePool(this GameObject prefab, int initialPoolSize) { GameObjectPool.CreatePool(prefab, initialPoolSize); }
public static void CreatePool <T>(this T prefab, int initialPoolSize) where T : Component { GameObjectPool.CreatePool(prefab, initialPoolSize); }
public static void CreatePool(this GameObject prefab) { GameObjectPool.CreatePool(prefab, 0); }
public static void CreatePool <T>(this T prefab) where T : Component { GameObjectPool.CreatePool(prefab, 0); }