I need get variable from child class

Try implementing a interface to the Object, and then create a dedicated function which executes when certain interface is detected in the object. You can do that on HitTesting.