public static GameObject Spawn(this GameObject prefab, Transform parent) { return(GenericObjectPool.Spawn(prefab, parent, Vector3.zero, Quaternion.identity)); }
public static GameObject Spawn(this GameObject prefab) { return(GenericObjectPool.Spawn(prefab, null, Vector3.zero, Quaternion.identity)); }
public static GameObject Spawn(this GameObject prefab, Vector3 position, Quaternion rotation) { return(GenericObjectPool.Spawn(prefab, null, position, rotation)); }
public static GameObject Spawn(this GameObject prefab, Transform parent, Vector3 position, Quaternion rotation) { return(GenericObjectPool.Spawn(prefab, parent, position, rotation)); }
public static T Spawn <T>(this T prefab) where T : Component { return(GenericObjectPool.Spawn(prefab, null, Vector3.zero, Quaternion.identity)); }
public static T Spawn <T>(this T prefab, Transform parent) where T : Component { return(GenericObjectPool.Spawn(prefab, parent, Vector3.zero, Quaternion.identity)); }
public static T Spawn <T>(this T prefab, Vector3 position, Quaternion rotation) where T : Component { return(GenericObjectPool.Spawn(prefab, null, position, rotation)); }