I am trying to trigger a function of an object through raycast detection, that is, I press the mouse on the screen, create a Raycast2D and detect if it collides with a 2D object, and if that happens trigger a function inside that object, for Give an example: change_color(), destroy_object(), etc. From now, thank you for your attention.
Home
/
user-95936