Hat script: switch trigger/collider to 2D