|
Hello, 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. Code: The enemypos script is as follows :
The spawn() function is as follows: (is called from another script)
Code Explanation: The function e_spawn() is used to instantiate the enemy prefab. Request: My humble request is how to destroy and instantiate the same enemy along the x axis. THANK YOU in advance
(comments are locked)
|
|
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. Sorry mate - Really sorry I messed up things. I was so confused that I made something else on my Question. I should not have done that. I have changed the question right now. If it was not you, I do not think I could have noticed it. I hope I am clear now.
Dec 07 '11 at 08:24 AM
Karsnen
(comments are locked)
|

Fellow Unity Users - My original question and it's explanation was wrong but now I have edited it.
Could someone kindly help me on this?