Example #1
0
    void Search()
    {
        float x = Input.GetAxis("Horizontal");

        charaProvider.Move(x, false);
        if (x == 0)
        {
            charaProvider.Stopping();
        }
        else
        {
            charaProvider.Running();
        }

        var jump = Input.GetKeyDown(KeyCode.Space);

        if (jump)
        {
            charaProvider.BeginJump();
        }
    }