Skip to content
Snippets Groups Projects
Commit b877f48d authored by Leevi Grönlund's avatar Leevi Grönlund
Browse files

Changed Outcrop object existence to invisible instead of destroying

parent 43fb2cbf
Branches
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ public class Outcrop : MonoBehaviour ...@@ -37,7 +37,7 @@ public class Outcrop : MonoBehaviour
{ {
GameObject go = Instantiate<GameObject>(quarry); GameObject go = Instantiate<GameObject>(quarry);
go.transform.position = this.transform.position; go.transform.position = this.transform.position;
Destroy(gameObject); gameObject.SetActive(false);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment