if you've selected this enum. do this. How?

Hey guys.
I noticed, if you create an enum like this:

public enum Type 
public Type type = new Type();

You can see it in the inspector, and select the Player & Enemy.
Now. Is there a way to an if statement, that checks if you’ve selected Player in the inspector?

something like this

if(Type.Player.isSelected == true)
     //do stuff...

if(type == Type.Player)
//do stuff…