hey everyone, i’ve been having trouble with loading player positions between scenes. what i have now is a player not facing the camera after i switch to another scene, what i want is when the scene appears, the palyer should be turned to face the camera. i know that i have to fix the rotation coordinates but i don’t know how
i’ve tried with this script but it still doesn’t work
private float rotX = 0f;
private float rotY = 252f;
private float rotZ = 0f;
void Start () {
DontDestroyOnLoad (transform.gameObject);
if (FindObjectsOfType(GetType()).Length > 1)
{
Destroy(gameObject);
}
checkScene ();
}
void checkScene(){
GameObject.Find("young").transform.rotation= new Quaternion(rotX,rotY,rotZ);
}