|
Hi everyone, This is my first question on these boards. I have a scene for a RTS game that is filled with units (just basic capsules). When I click a unit I wan't to set a plane visible that is attached as a child to the unit. All the child objects have the same name ("Plane"). The problem is when I select one unit all of the planes become visible. The code: Can someone help me with this issue. Thanks in advance.
(comments are locked)
|
|
Remove the lines: and put them into 'AddUnit', with a small modification: Similarly with deselecting, only with the removed objects.
Mar 21 '12 at 10:03 AM
syclamoth
Thanks, it works perfect now! ;)
Mar 21 '12 at 10:11 AM
CookieBE
(comments are locked)
|

Please post your code.