From e5b6992875f182c7362f20cbefae2bc2bab28776 Mon Sep 17 00:00:00 2001 From: Firesieht Date: Wed, 9 Feb 2022 22:21:24 +0300 Subject: [PATCH] fix bugs --- .../scripts/toolChest/toolChestPrefabController.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Assets/scripts/toolChest/toolChestPrefabController.cs b/Assets/scripts/toolChest/toolChestPrefabController.cs index 585e11b..726dfb2 100644 --- a/Assets/scripts/toolChest/toolChestPrefabController.cs +++ b/Assets/scripts/toolChest/toolChestPrefabController.cs @@ -81,13 +81,12 @@ public class toolChestPrefabController : MonoBehaviour void Update() { - detectPLanes(); - detectObjects(); - /* if (spawnChest == true) - { - detectPLanes(); - detectObjects(); - }*/ + + if (spawnChest == true) + { + detectPLanes(); + detectObjects(); + } } private void detectPLanes()