🤔

Trigger messages (2D)#

Ensure your functions use the correct types, spelling, and capitalisation as below.
The variable collider can be renamed, and access modifiers are not important. The parameters are optional if you are not using them.

OnTriggerEnter2D#

void OnTriggerEnter2D(Collider2D collider)
{
    // Your behaviour here
}

OnTriggerStay2D#

void OnTriggerStay2D(Collider2D collider)
{
    // Your behaviour here
}

OnTriggerExit2D#

void OnTriggerExit2D(Collider2D collider)
{
    // Your behaviour here
}

I am still not getting a message.