public static void RecycleAll <T> (this T prefab) where T : Component { ObjectPool.RecycleAll(prefab); }
public static void RecycleAll(this GameObject prefab) { ObjectPool.RecycleAll(prefab); }
public static void DestroyAll(this GameObject prefab) { ObjectPool.DestroyAll(prefab); }
public static void CreatePool <T> (this T prefab, int initialPoolSize) where T : Component { ObjectPool.CreatePool(prefab, initialPoolSize); }
public static List <GameObject> GetPooled(this GameObject prefab, List <GameObject> list) { return(ObjectPool.GetPooled(prefab, list, false)); }
public static List <T> GetPooled <T> (this T prefab, List <T> list, bool appendList) where T : Component { return(ObjectPool.GetPooled(prefab, list, appendList)); }
public static GameObject Spawn(this GameObject prefab, Transform parent, Vector3 position, Quaternion rotation) { return(ObjectPool.Spawn(prefab, parent, position, rotation)); }
public static List <T> GetSpawned <T> (this T prefab, List <T> list) where T : Component { return(ObjectPool.GetSpawned(prefab, list, false)); }
public static T Spawn <T> (this T prefab, Transform parent) where T : Component { return(ObjectPool.Spawn(prefab, parent, Vector3.zero, Quaternion.identity)); }
public static T Spawn <T> (this T prefab) where T : Component { return(ObjectPool.Spawn(prefab, null, Vector3.zero, Quaternion.identity)); }
public static T Spawn <T> (this T prefab, Vector3 position, Quaternion rotation) where T : Component { return(ObjectPool.Spawn(prefab, null, position, rotation)); }
public static void CreatePool(this GameObject prefab, int initialPoolSize) { ObjectPool.CreatePool(prefab, initialPoolSize); }
public static void CreatePool(this GameObject prefab) { ObjectPool.CreatePool(prefab, 0); }
public static int CountSpawned <T> (this T prefab) where T : Component { return(ObjectPool.CountSpawned(prefab)); }
public static GameObject Spawn(this GameObject prefab, Vector3 position) { return(ObjectPool.Spawn(prefab, null, position, Quaternion.identity)); }
public static int CountSpawned(this GameObject prefab) { return(ObjectPool.CountSpawned(prefab)); }
public static GameObject Spawn(this GameObject prefab, Transform parent) { return(ObjectPool.Spawn(prefab, parent, Vector3.zero, Quaternion.identity)); }
public static List <GameObject> GetPooled(this GameObject prefab, List <GameObject> list, bool appendList) { return(ObjectPool.GetPooled(prefab, list, appendList)); }
public static GameObject Spawn(this GameObject prefab) { return(ObjectPool.Spawn(prefab, null, Vector3.zero, Quaternion.identity)); }
public static List <GameObject> GetPooled(this GameObject prefab) { return(ObjectPool.GetPooled(prefab, null, false)); }
public static void Recycle <T> (this T obj) where T : Component { ObjectPool.Recycle(obj); }
public static List <T> GetPooled <T> (this T prefab) where T : Component { return(ObjectPool.GetPooled(prefab, null, false)); }
public static void Recycle(this GameObject obj) { ObjectPool.Recycle(obj); }
public static void DestroyAll <T> (this T prefab) where T : Component { ObjectPool.DestroyAll(prefab.gameObject); }
public static void CreatePool <T> (this T prefab) where T : Component { ObjectPool.CreatePool(prefab, 0); }