- Home /
Question by
Shinxs · Oct 06, 2012 at 05:52 PM ·
c#javascriptontriggerenterfunctionsontriggerexit
OnTriggerEnter function in c#
How could I get the OnTriggerEnter and OnTriggerExit functions in C#. I've tried a GetComponent() but it did't worked.
Comment
You just write these functions - you don't call them yourself.
void OnTriggerEnter(Collider other)
{
}