示例#1
0
    private void MovementInput()
    {
        float input = Input.GetAxis("Horizontal");

        if (input > 0)
        {
            input = 1;
        }
        else if (input < 0)
        {
            input = -1;
        }
        movementManager.MovementInput = input;



        if (Input.GetButtonDown("Dash"))
        {
            movementManager.DashPressed();
        }
        if (Input.GetButtonUp("Dash"))
        {
            movementManager.DashReleased();
        }
    }