From 7a4e8b75da6813711a6236541364457b25a19baa Mon Sep 17 00:00:00 2001 From: MeeXaSiK <87555873+MeeXaSiK@users.noreply.github.com> Date: Mon, 15 Aug 2022 22:09:01 +0700 Subject: [PATCH] Update NightPool.cs --- Code/NightPool/NightPool.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Code/NightPool/NightPool.cs b/Code/NightPool/NightPool.cs index b1a8671..890e569 100644 --- a/Code/NightPool/NightPool.cs +++ b/Code/NightPool/NightPool.cs @@ -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); }