Hi, I will try to help you.
you could try this several ways, however, to detect the tiles and have different reactionsI I would have the player with 2 raycast and each one with different properties.
regarding the layers, the first layer is what is the object and the mask is the one you want to collide, I would change the names in project setting so you can make it easier.
layer1: player, layer2: world, layer3: enemy
player :layer in player and mask in word and enemy
world : layer in world and enemy
enemy: layer in enemy and mask in player, world and in enemies if you want to collide if not I would not select it.
however the the layer isn't necessary to select one you could unselect all and just select the mask.
I hope it make sense.