CollisionEnter2D.OnCollisionEnter2D


Declaration

protected virtual void OnCollisionEnter2D(Collision2D collision)

Description

Invokes the custom unity event in response to OnCollisionEnter2D.

Parameters

collisionThe collision data to send with the event.