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

Resource destruction replaced by setting not visible

parent 6c4441f9
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ public class Forest : Resource ...@@ -60,7 +60,7 @@ public class Forest : Resource
{ {
if (getAmount() < 1) if (getAmount() < 1)
{ {
Destroy(gameObject); gameObject.SetActive(false);
} }
} }
......
...@@ -9,7 +9,7 @@ public class Quarry : Resource ...@@ -9,7 +9,7 @@ public class Quarry : Resource
{ {
if (getAmount() < 1) if (getAmount() < 1)
{ {
Destroy(gameObject); gameObject.SetActive(false);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment