2D Collisions aren't detected. What to use for tiles?

I want to make simple game based on tilemap. I’m trying to detect collision between Player (this black circle :P) and tiles (white and red squares).

Player is a sprite and tiles are “quad” (I really don’t know what’s this, I’ve tried to use plane, but in 2d view it isn’t visible (maybe that’s the problem)).
Both of them have component “Box Collider 2D” and Player has also “Rigidbody 2D” with “Is Kinematic = true”.


function OnCollisionEnter(collision : Collision){

When Player is on the tiles nothing happens (but it should destroy tiles )

So, I found the answer (thanks for Patrick from Google+)

The problem was: in 2D games OnCollisionEnter doesn’t work. When you want to detect collisions in 2D game you have to use OnCollisionEnter2D.

I think you need to add a rigidbody to the tiles also and set:

Rigidbody2D.isKinematic = false;

I don’t think the colliders do anything by themselves.