在unity开发游戏的时候,使用 SceneManager.LoadScene返回场景,但是在测试的时候会一直不停的返回场景,怎么解决这个问题。

public bool IsMove = false;
if (IsMove)
{
if (this.transform.position.y> limit_y)
{
this.transform.Translate(Vector3.down * speed);
}
else
{
IsMove = false;
Invoke("ReLoadScene",1f); }
}
void ReLoadScene()
{
SceneManager.LoadScene("Game");
}

你的ismove什么时候是true呢?