Object Facing the opposite direction

So in my game i have an Empty Game Object that spawns enemies for the player to shoot at. Well when i went to play mode the enemy object is facing the opposite direction and not 180 on the Z-Axis. Here is the script that spawns the enemies.

public GameObject hazard;
public Vector3 spawnValues;

void Start ()


void SpawnWaves ()
	Vector3 spawnPosition = new Vector3 (Random.Range (-  spawnValues.x, spawnValues.x), spawnValues.y, spawnValues.z);
	Quaternion spawnRotation = Quaternion.identity;
	Instantiate (hazard, spawnPosition, spawnRotation);

The Enemy prefab is set to 180 on the Z-Axis(the correct way to face the player) , the GameController(Empty Game Object) however is also set to 180 on the Z-Axis. The Enemy keeps spawning 0 on the Z-Axis, i don’t know if i should put the enemy prefab rotation Z-Axis to 0 or not? If you can help thank you

If you want to use prefab’s own rotation when instantiating then replace