You know how when a collision takes place, you can create an OnCollisionEnter function to have stuff happen in that script? I want to do something similar, but with raycasts. When a certain raycast is hit, I want it to send some sort of signal to call a function like OnCollisionEnter on all of the scripts on that object.
Nevermind, I found a way to do it. I can just use the SendMessage function to call the function on all scripts on the object whenever my raycast hits something.