collision detection in 2d unity code example Example: collision detector unity c# 2d void OnCollisionEnter2D(Collision2D coll){)