I am working on a
Game Objects :
I have placed a script called as "enemypos" on an empty gameobject. Then there is another prefab called as the "enemy" which is the enemy.
The enemypos script is as follows :
The spawn() function is as follows: (is called from another script)
The function e_spawn() is used to instantiate the enemy prefab.
My humble request is how to destroy and instantiate the same enemy along the x axis.
THANK YOU in advance
If I understand well, in the function spawn() you randomize the point on which the new enemy will appears, and you wanna modify that script. If so:
I think that it could be a solution for your problem.
answered Dec 07 '11 at 08:02 AM