Two object (player and enemy) detect collision

Hi
I want the player to pass through the enemy by making the player layer not collide with the enemy layer, and make a new path. How to make it??
I use mouse click to run the player


Hi

So you are saying you want to disable collision between the two objects?
If so, take a look at the Unity physics settings: https://docs.unity3d.com/Manual/LayerBasedCollision.html