Can I prevent a child gameobject rotates if the parent rotate?

I am making a game and I have an airplane (parent), for example, if I rotate an airplane for 180°(Y), the landing gears (children) start to rotating. I have to change my script, but I don’t know how:


xLetala = Rotation X of airplane, hitrost = speed, AktivnoPodvozje=bool - landing gear.
I am very young and I don’t have lots of experiences. And I am learning English language, please answer with easy words.
Thank you.

To fix the problem, use this.transform.rotation.x.