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