>>707

if (timer > 1 && movetime > 0) { // 1秒毎に以下を実行。
     rigidbody.velocity.x = movespeed;
     movetime -= 1;
timer = 0;
}


timer 変数初期化わすれてたわ笑