check the direction betwen the character and the enemy

How can i check the direction of the enemy the make the character do something like looking at it but how can i know the direction

you could read up on vectors here:
to get a vector that points from your player to the enemy you can subtract their positions:
var direction : Vector3 = enemy.transform.position-player.transform.position

you also want to check out the scripting reference:

you should be able to search for the rotation problem you are having.
basically before posting here, try finding solutions in the reference.