about SendMessage

Hello World, I want to ask about…

GetComponent()

or

SendMessage()

Which is better?

and

Which one more efficiency??

Thanks!

SendMessage is slow and globally.

What you can do instead is to initialize your references at Start/init time. Use GetComponent for that.

Thank you

But I need in the collision detection of collision object GetComponent use

So can’t Start in the time to use