コード例 #1
0
    void MovementInput()
    {
        playerMovement.forwardInput  = Input.GetAxis("Vertical");
        playerMovement.sidewaysInput = Input.GetAxis("Horizontal");

        if (Input.GetButtonDown("Jump"))
        {
            playerMovement.JumpPressed();
        }
        if (Input.GetButtonUp("Jump"))
        {
            playerMovement.JumpReleased();
        }
        if (Input.GetButtonDown("Dash"))
        {
            playerMovement.DashPressed();
        }
    }