In this case it’s two behaviour GameObject but it might be also 10 behaviour GameObjects or more.
The idea is to use the same script for many GameObjects and each GameObject the script will have the same/different behaviour.
In the screenshots I have some loadings GameObjects loading 1,2,3,4,6,7
The script is attached now to loading4 and loading6.
On both cases the script is attached to vica.
What I want to do is that if in vica of loading4 the rotate flag bool is set to false in the Inspector then use it in the script on vica of loading4 as false. But if in the vica of loading6 in the Inspector the flag bool rotate is set to true then use it true all the time on the script that is attached to vica of loading6.
So in my logic when running the game the rotate flag should be all the time false in loading4 vica script and true in the loading6 vica script. Same script but with different behaviour on each vica.
I see that the rotate flag is changing all the time once it’s true then false then true then false then true then false…But I want that if it’s true on one object keep it true on this object and keep it false on other/s.
Another problem is that each loading have a text child. I want that when the loading is rotating (if rotate is true) to move the text of the current rotating loading and put it as child under Texts and if the loading is not rotating move it back as child under the loading it was. The reason is that I don’t want the text to rotate with the loading and the vica. But it’s not working the way I’m doing it.

