My character is moving through different rooms, but when they go through doors and I load the scenes the player always goes to the position set in the editor. Is there a way to set the position of the character as the scene is loaded? Here is my script so far:
public string sceneToLoad;
public Vector2 playerPosition;
public VectorValue playerStorage;
public void OnTriggerEnter2D(Collider2D other) {
if (other.CompareTag("Player") && !other.isTrigger)
{
SceneManager.LoadScene(sceneToLoad);
}
}
Thanks!