I have a ship.
It shoots missiles by instantiating a prefab.
I also has a guide laser that raycasts to generate a target position.
My question is how do I best pass on this target position to all living missiles?
Any tips for how to structure that?
(Without going OOP crazy ![]()
Your question is far too vague. Information on using Unity Answers : * http://answers.unity3d.com/page/newuser.html * http://video.unity3d.com/video/7720450/tutorials-using-unity-answers Every time you create a missile, put it in a list. Then when you select a target, tell every missile in the list what the target is. Generic List : http://wiki.unity3d.com/index.php?title=Which_Kind_Of_Array_Or_Collection_Should_I_Use?#Generic_List
– AlucardJayThanks that looks like a handy list description.
– Fredrum