So I want to turn change the colors (set material color action) of a tank. The tank have several childs and not all have renderers. So I am trying to use 'get next child' action. if all of the childs have a renderer, it works. however, some do not.
So my problem (OK, one of my problems) is that I can't change all of the childs with renderers. I use the 'get next child' and set it to a variable. The variable is a game object. However, the get property or set property requires a 'object', not a 'game object'
So how do I use the variable (which is set in the 'get next child') to see if it has a renderer. If not, then I need to pass on it and go back.