When the player is spawning/re-spawning on the spawn point they are always looking towards the Z-Axis no matter the rotation of the spawn point which is what i want.
public class PlayerSpawner : MonoBehaviour
{
public Transform[] spawnLocations;
public GameObject[] whatToSpawnPrefab;
public GameObject[] whatToSpawnClone;
void Start()
{
playerSpawn ();
}
public void playerSpawn()
{
whatToSpawnClone[0] = Instantiate(whatToSpawnPrefab[0]) as GameObject;
}
}