Spawn Rotation not working

When I spawn In my character, He is supposed to be aiming towards the door but when he spawns he is looking at the wall on his left. How can I fix this?

Rotate him towards the wall door in the scene view. Otherwise put this in the start function:

public GameObject player; //drag and drop your player into this
public float YAxisAngle = //the angle on the y axis your player needs to be looking at

void Start () {
          player.transform.Rotate(0, YAxisAngle, 0);