When I need to destroy some blocks that are Generated by the prefab, the prefab is also destroyed. How can I change this?` public void DestroyBlocks()
{
GameObject[] objects = GameObject.FindGameObjectsWithTag("Obstacle");
foreach (GameObject obj in objects)
{
Destroy(obj);
}
`
That is all I have now. Please note that the Prefab has a tag Obstacle.
Thanks