Player depth error

Hi guys, I have a problem with my player and that is that although the layers are correctly placed and in the editor it looks good when pressing play the player looks above all the layers in front of him, for example a light or a shadow, I have no idea why this happens. Can you help me? 2d