When i test the game with the unity editor, everything is ok. But when I use this script at start to make a small introduction video (it disables the player and the main camera for 3 seconds, and then it enables them again), the player makes a long “jump” into the air, and stays there. Why?
function Start () {
playercam.active = false;
playerobject.active = false;
firstcam.active = true;
yield WaitForSeconds (secondstowait);
playercam.active = true;
firstcam.active = false;
playerobject.active = true;
}