Wondering best way to change direction of character in Endless Runner gsme

I’m building an haunted endless runner game and I am wondering when the character arrives at a corner should i make the world turn or the player with the camera attached ? At the moment my player can move left and right on the x axis. I am using: moveVector.x = Input.GetAxisRaw(“Horizontal”) * speed; to achieve this. I am also using prefab tiles as the ground with obstetrical that spawn directly in front of the player 5 at a time. Now because I’m already using moveVector.x = Input.GetAxisRaw(“Horizontal”) * speed; to move left and right to avoid obstetrical should i have trigger that changes the direction of the player ? I’m unsure which is the best route to take and i would really appreciate any advice on hoe to proceed.

Thanks in advance
Seanore

look for 2.5D platformer from Redbee on the asset store that does exactly what you want.