How to share 1 hit event between 2 objects?

Came out with an idea. Will hear other options with pleasure.

Possible solution:

  1. Create a dedicated class for the FX, containing both collided objects as variables
  2. Have a function in the colliding objects class, that spawns that FX class
  3. Upon each collision, first check if there is already a FX class instance spawned in some small radius, that contains these objects & were created in the last 0.1 sec or so. if true - don’t create a new one. (avoid duplicate)

This way the first one to trigger the hit event will spawn the FX, and the second one will be prevented from doing so.