From b877f48da03a09d7016fad216bff69eea1c22007 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Leevi=20Gr=C3=B6nlund?= <lejugr@utu.fi>
Date: Sun, 3 Mar 2019 21:12:43 +0200
Subject: [PATCH] Changed Outcrop object existence to invisible instead of
 destroying

---
 Assets/Scripts/Resources/Outcrop.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Assets/Scripts/Resources/Outcrop.cs b/Assets/Scripts/Resources/Outcrop.cs
index 27d1cf8..c58d19c 100644
--- a/Assets/Scripts/Resources/Outcrop.cs
+++ b/Assets/Scripts/Resources/Outcrop.cs
@@ -37,7 +37,7 @@ public class Outcrop : MonoBehaviour
         {
             GameObject go = Instantiate<GameObject>(quarry);
             go.transform.position = this.transform.position;
-            Destroy(gameObject);
+            gameObject.SetActive(false);
         }
     }
 
-- 
GitLab