So I’m create the code who find and delete every game object whit specific tag…
// This code destroy all of Game objects whit “Cube” tag even if you put this 3 line in start
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
foreach (GameObject Cubes in GameObject.FindGameObjectsWithTag(“Cube”))
{
Destroy(Cubes);
}
How can I change the code to just destroy one of the founded game objects?