📅  最后修改于: 2022-03-11 14:48:40.494000             🧑  作者: Mango
if(Input.GetKeyDown(KeyCode.Space))
{
if (isGrounded == true || jumpers < 2)
{
Jump();
isGrounded = false;
jumpers++;
}
}
if(isGrounded == true)
{
jumpers = 0;
}