Пример #1
0
 public static GameObject Spawn(this GameObject prefab, Transform parent)
 {
     return(GenericObjectPool.Spawn(prefab, parent, Vector3.zero, Quaternion.identity));
 }
Пример #2
0
 public static GameObject Spawn(this GameObject prefab)
 {
     return(GenericObjectPool.Spawn(prefab, null, Vector3.zero, Quaternion.identity));
 }
Пример #3
0
 public static GameObject Spawn(this GameObject prefab, Vector3 position, Quaternion rotation)
 {
     return(GenericObjectPool.Spawn(prefab, null, position, rotation));
 }
Пример #4
0
 public static GameObject Spawn(this GameObject prefab, Transform parent, Vector3 position, Quaternion rotation)
 {
     return(GenericObjectPool.Spawn(prefab, parent, position, rotation));
 }
Пример #5
0
 public static T Spawn <T>(this T prefab) where T : Component
 {
     return(GenericObjectPool.Spawn(prefab, null, Vector3.zero, Quaternion.identity));
 }
Пример #6
0
 public static T Spawn <T>(this T prefab, Transform parent) where T : Component
 {
     return(GenericObjectPool.Spawn(prefab, parent, Vector3.zero, Quaternion.identity));
 }
Пример #7
0
 public static T Spawn <T>(this T prefab, Vector3 position, Quaternion rotation) where T : Component
 {
     return(GenericObjectPool.Spawn(prefab, null, position, rotation));
 }