So my state machine works on this state. there is an enemy craft, it has an I tween move update to a vector 3 global variable for the players aircraft. it also has another state machine that detects a bullet, destroys itself and creates a copy of itself out of a prefab dulicate (enemy craft) on one of 3 random spawn points. That all works, kill craft, respawn, etc...
Now here is my dilemma, what I really want to do is for the enemy to patrol by going to one waypoint, then the next, etc... 4 waypoints in total. When enemy gets detected, go to him.. and when destroy, respawn another copy of the enemy that follows the waypoint patrol and so on.
the initial object on scene works fine, but when I respawn, the new object is just stationary. it never goes to the waypoint (I have treid storing the object as a global variable, its vector 3, etc) Seems (according to what I read on forums) that prefabs loose their connection to scene objects. Any suggestion on how I can get this working? seems odd I can make it work following the players vector global variable, bit cant do that to an empty object waypoint.