How to retain the same amount of clones after I destroy them?

Hi,

Here’s my coding,

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class spawnRandom : MonoBehaviour {

public GameObject[ ] enemies;
public GameObject[ ] clones;
public Vector3 spawnValues;
public float spawnWait;
public float spawnMostWait;
public float spawnLeastWait;
public float timer = 200;
public int startWait;
public bool stop;

int randEnemy;
int i = 0;
//float cloneNumber1;
//int countClones;

void Start ()
{
StartCoroutine (waitSpawner());

}

void FixedUpdate ()
{
spawnWait = Random.Range (spawnLeastWait,spawnMostWait);
//cloneNumber1 = 10;

Invoke (“cloneDestroy”,10.0f);

}

IEnumerator waitSpawner ()
{

yield return new WaitForSeconds (startWait);

while (!stop)
{

randEnemy = Random.Range (0, enemies.Length);

Vector3 spawnPosition = new Vector3 (Random.Range (-spawnValues.x, spawnValues.x), 1, Random.Range (-spawnValues.z, spawnValues.z));

clones = Instantiate (enemies [randEnemy], spawnPosition, gameObject.transform.rotation);

yield return new WaitForSeconds (spawnWait);

//countClones += 1;

i++;

}
}
void cloneDestroy ()
{
//timer -= Time.deltaTime;
if (i == clones.Length)
{
i = Random.Range (0, clones.Length);
GameObject temp = clones ;
clones = null;
Destroy (temp, 10f);
i++;
}
}
}
The code meanwhile seems able to run, but it will destroy my clone. I mean I want the clone to be destroyed but i want to retain the same amount of clones being spawned at different locations at different time. Thanks!

Use code tags, it makes your code much more readable.