- Home /
Send Message to check if object is rotating
So I have this gameObject, composed by a parent and six child objects. I have a script that instantiates a grid of those gameObjects. Each one of the parent gameObjects has the same script attached, where there's a boolean variable that checks if the object is rotating. And in each one of those child objects here's a script attached that responds differently depending if the parent is rotating or not. My problem is that I can't make that link between the parent script and child script (the child should be able to talk to other parents that aren't his), because I can't make the rotation boolean a static because it changes from object to object, what I'm looking for is some kind of message that tells the child script that some object is rotating... Can somebody help me please?
Your answer
