unity script for the target gets destroyed and after 5 seconds, another adversary object is spawned a distance behind from the destroyed object. code example
Example: how to destroy in unity
// To remove a GameObject use the function 'Destroy()'
Destroy(gameObject);