how to destroy all objects wirh the same tag code example
Example: unity destroy all objects with tag
GameObject[] enemies = GameObject.FindGameObjectsWithTag("Enemy");
foreach(GameObject enemy in enemies)
{
GameObject.Destroy(enemy);
}
GameObject[] enemies = GameObject.FindGameObjectsWithTag("Enemy");
foreach(GameObject enemy in enemies)
{
GameObject.Destroy(enemy);
}