Esempio n. 1
0
 public static void RecycleAll(this GameObject prefab)
 {
     GameObjectPool.RecycleAll(prefab);
 }
Esempio n. 2
0
 public static void CreatePool <T>(this T prefab, int initialPoolSize) where T : Component
 {
     GameObjectPool.CreatePool(prefab, initialPoolSize);
 }
Esempio n. 3
0
 public static void RecycleAll <T>(this T prefab) where T : Component
 {
     GameObjectPool.RecycleAll(prefab);
 }
Esempio n. 4
0
 public static List <T> GetPooled <T>(this T prefab, List <T> list, bool appendList) where T : Component
 {
     return(GameObjectPool.GetPooled(prefab, list, appendList));
 }
Esempio n. 5
0
 public static void DestroyAll(this GameObject prefab)
 {
     GameObjectPool.DestroyAll(prefab);
 }
Esempio n. 6
0
 public static List <T> GetSpawned <T>(this T prefab, List <T> list) where T : Component
 {
     return(GameObjectPool.GetSpawned(prefab, list, false));
 }
Esempio n. 7
0
 public static List <GameObject> GetPooled(this GameObject prefab, List <GameObject> list)
 {
     return(GameObjectPool.GetPooled(prefab, list, false));
 }
Esempio n. 8
0
 public static GameObject Spawn(this GameObject prefab, Transform parent, Vector3 position, Quaternion rotation)
 {
     return(GameObjectPool.Spawn(prefab, parent, position, rotation));
 }
Esempio n. 9
0
 public static GameObject Spawn(this GameObject prefab, Vector3 position)
 {
     return(GameObjectPool.Spawn(prefab, null, position, Quaternion.identity));
 }
Esempio n. 10
0
 public static T Spawn <T>(this T prefab, Transform parent) where T : Component
 {
     return(GameObjectPool.Spawn(prefab, parent, Vector3.zero, Quaternion.identity));
 }
Esempio n. 11
0
 public static T Spawn <T>(this T prefab) where T : Component
 {
     return(GameObjectPool.Spawn(prefab, null, Vector3.zero, Quaternion.identity));
 }
Esempio n. 12
0
 public static T Spawn <T>(this T prefab, Vector3 position, Quaternion rotation) where T : Component
 {
     return(GameObjectPool.Spawn(prefab, null, position, rotation));
 }
Esempio n. 13
0
 public static void CreatePool(this GameObject prefab, int initialPoolSize)
 {
     GameObjectPool.CreatePool(prefab, initialPoolSize);
 }
Esempio n. 14
0
 public static void CreatePool(this GameObject prefab)
 {
     GameObjectPool.CreatePool(prefab, 0);
 }
Esempio n. 15
0
 public static int CountSpawned <T>(this T prefab) where T : Component
 {
     return(GameObjectPool.CountSpawned(prefab));
 }
Esempio n. 16
0
 public static GameObject Spawn(this GameObject prefab, Transform parent)
 {
     return(GameObjectPool.Spawn(prefab, parent, Vector3.zero, Quaternion.identity));
 }
Esempio n. 17
0
 public static int CountSpawned(this GameObject prefab)
 {
     return(GameObjectPool.CountSpawned(prefab));
 }
Esempio n. 18
0
 public static GameObject Spawn(this GameObject prefab)
 {
     return(GameObjectPool.Spawn(prefab, null, Vector3.zero, Quaternion.identity));
 }
Esempio n. 19
0
 public static List <GameObject> GetPooled(this GameObject prefab, List <GameObject> list, bool appendList)
 {
     return(GameObjectPool.GetPooled(prefab, list, appendList));
 }
Esempio n. 20
0
 public static void Recycle <T>(this T obj) where T : Component
 {
     GameObjectPool.Recycle(obj);
 }
Esempio n. 21
0
 public static List <GameObject> GetPooled(this GameObject prefab)
 {
     return(GameObjectPool.GetPooled(prefab, null, false));
 }
Esempio n. 22
0
 public static void Recycle(this GameObject obj)
 {
     GameObjectPool.Recycle(obj);
 }
Esempio n. 23
0
 public static List <T> GetPooled <T>(this T prefab) where T : Component
 {
     return(GameObjectPool.GetPooled(prefab, null, false));
 }
Esempio n. 24
0
        private static IEnumerator RecycleAsync(this GameObject gameObject, float delay)
        {
            yield return(new WaitForSeconds(delay));

            GameObjectPool.Recycle(gameObject);
        }
Esempio n. 25
0
 public static void DestroyAll <T>(this T prefab) where T : Component
 {
     GameObjectPool.DestroyAll(prefab.gameObject);
 }
Esempio n. 26
0
 public static void CreatePool <T>(this T prefab) where T : Component
 {
     GameObjectPool.CreatePool(prefab, 0);
 }