Yes i have something that calls the function “ResetPlayer” My boolean which is “playersAreReady” is not being called to be true or false in the update"
var playersAreReady : boolean = true;
var moveUp : KeyCode;
var moveDown : KeyCode;
var speed : float = 15;
function ResetPlayers ()
{
transform.position.y = 0;
playersAreReady = false;
yield WaitForSeconds(1);
playersAreReady = true;
}
function Update ()
{
if (playersAreReady == true);
(Input.GetKey(moveUp));
}
rigidbody2D.velocity.y = speed;
if (playersAreReady == true);
(Input.GetKey(moveDown));
{
rigidbody2D.velocity.y = speed *-1;
Is the reset players function being called in the function update. It may be being called more than once and not have time to wait for seconds.nuse a for loop to make sure it is called once.