unity on trigger enter

C#
//for unity c#

private void OnTriggerEnter(Collider other)
{
    // code
}
Source

Also in C#: