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.
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.