Problems with variables.

Hi!

I have 2 objects with the same script and when i set an bool to true it sets both of the objects bools to true is there an way so that the script only puts it to true for the parent gameobject?

Thank you!

Is your variable maybe declared as static?

Please elaborate on what your setup is. Post some code maybe. You mention two objects with a bool but then you suddenly ask about a parent object. It’s pretty hard to understand your problem without more information.

1 Like