📜  如何使双跳统一 2d - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:40.494000             🧑  作者: Mango

代码示例1
if(Input.GetKeyDown(KeyCode.Space))
        {
            if  (isGrounded == true || jumpers < 2)
            {
                Jump();
                isGrounded = false;
                jumpers++;
            }
        }
        if(isGrounded == true)
         {
                jumpers = 0;
         }