Hi.
Im creating a game in which about 20 AIs will be moving at the same time. A lot of the time, they will move together, so in order to optimize (becouse its for android) i wanted to create a parent gameobject for them, and just move that.
But the AIs, have children which has colliders for each bodypart. When a part is hit, a message is sent to the root, which has the AI script, that they take damage.
Parreting all AIs to one object, would mean i could no longer use .root to get the AI.
Is there any way, to get the second most parent, without doing slow loops through all parents?
And if not, does anyone know how much it would slow down the game, to have a script on each bodypart collider, which held the AI transform, and accessing that instead?