private bool GetTouchInput(KeyCode key)
    {
        switch (key)
        {
        case KeyCode.A:
            return(leftMoveData.GetKey());

        case KeyCode.D:
            return(rightMoveData.GetKey());

        case KeyCode.Space:
            return(leftJumpData.GetKey() || rightJumpData.GetKey());
        }
        return(false);
    }