示例#1
0
    void HandleInput()
    {
        if (Input.GetButtonDown("right_dash"))
        {
            dash.Execute(new DashObject(transform, Utils.Direction.RIGHT));
        }
        if (Input.GetButtonDown("left_dash"))
        {
            dash.Execute(new DashObject(transform, Utils.Direction.LEFT));
        }

        if (Input.GetButtonDown("shoot"))
        {
            shoot.Execute(new ShootObject(projectilePrefab, shootStart, shootEnd, type));
        }
    }