Skip to content

Commit

Permalink
Update NightPool.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
MeeXaSiK committed Aug 15, 2022
1 parent 72d48c5 commit 7a4e8b7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Code/NightPool/NightPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,7 @@ private static async void DefaultDespawn(GameObject toDespawn, float delay = 0f)
private static void SetupTransform(Transform transform, Vector3 position, Quaternion rotation,
Transform parent = null, bool worldPositionStays = false)
{
if (parent != null)
{
transform.SetParent(parent, worldPositionStays);
}

transform.SetParent(parent, worldPositionStays);
transform.SetPositionAndRotation(position, rotation);
}

Expand Down

0 comments on commit 7a4e8b7

Please sign in to comment.