Skip to content

Commit b5b45d7

Browse files
authored
Update PoolExtensions.cs
1 parent f12fd90 commit b5b45d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/PoolExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public static T Get<T>(this GameObject prefab) where T : Component =>
2828
public static T Get<T>(this GameObject prefab, Transform parent) where T : Component =>
2929
prefab.Get(parent).GetComponent<T>();
3030

31-
public static T Get<T>(this GameObject prefab, Transform parent, bool spawnInWorldSpace) where T : Component =>
32-
prefab.Get(parent, spawnInWorldSpace).GetComponent<T>();
31+
public static T Get<T>(this GameObject prefab, Transform parent, bool worldPositionStays) where T : Component =>
32+
prefab.Get(parent, worldPositionStays).GetComponent<T>();
3333

3434
public static T Get<T>(this GameObject prefab, Vector3 position, Quaternion rotation) where T : Component =>
3535
prefab.Get(position, rotation).GetComponent<T>();

0 commit comments

Comments
 (0)