Update TileMainEditor.cs

add the rigidbody2d
Update TileMain.cs
Update TileMain.cs

added bool to be able to chose a layer for the object
Update TileMainEditor.cs
Merge remote-tracking branch 'origin/master'

Conflicts:
	Editor/TileMainEditor.cs
No need to use prefab.