How can I select all objects of a certain tag?

Now, it’s a little more complicated than the title.

What I’d like to do, is find all objects in a scene with a type of tag. Then, go through each one highlighting in game (via instantiate/shader). However, it would need to be like highlight each object, with a pause before highlighting another. That’s really where I’m stuck.

Here’s where I am so far; but it’s far from finished…

What I’m trying to do is,

slow down time
find all enemies
then sequentially (randomly) highlight each one, until all are highlighted.
Then destroy.

Where I’;m stuck is highlighting the ******

function Update(){    
        
    if (Input.GetButtonDown ("Fire1")) {
        	    bombing =true;
    	if(bombcount>=1){
    	    bombing =true;
	        if (Time.timeScale == 1.0){
	        	Bomb = true;
	            Time.timeScale = 0.1;

	  	}else{
	        Time.timeScale = 1.0;
	        bombing = false;
	        bombcount--;
	        Bomb = false;
	        }
		}
	}

	if(Bomb == true){
	bombing = true;
	DestroyAllWithTags(["Enemy", "Enemy2", "Enemy3"]);
	
	Bomb= false;
        }
    if (bombcount == 0){
    
    bombing = false;
    }
}


function DestroyAllWithTags (tags : String[]) {

if (state == 0) {
        // var ToSpawn = Random.Range( 0, Enemies.length );
         //Instantiate (prefab);
         state = 1;
        return;
    }
    if (state == 1) {
        // do step 1
        state = 2;
        return;
    }


yield WaitForSeconds(2);

if(Bomb == true){
    for (var i = 0; i < tags.Length; i++) {
        var gos = GameObject.FindGameObjectsWithTag (tags[i]);
        for (var go in gos) Destroy (go);
        Bomb = false;
        }
    }
}

The code is rough; But I’d appreciate any thoughts on how to progress.

Here is the working example according ur requirement:

using UnityEngine;

using System.Collections;
public class Example : MonoBehaviour
{
	public GameObject[] myObjects;
	private int count;
	void Awake ()
	{
		count=0;
		myObjects = GameObject.FindGameObjectsWithTag ("mySphere");
		if (myObjects.Length>0){
			Invoke("changeMaterial",1.0f);
		}
	}	

	void changeMaterial(){

		myObjects[count].renderer.material.color=Color.red;
		count++;
		if (count<myObjects.Length){
			Invoke("changeMaterial",1.0f);
		}
	}
}

What i have done i took six sphere with tag name “mySphere”, applied this script to main Camera.