Example from my writing:
Not everything was rainbow and roses, of course. Sometimes rain would fall on my head or a thorn prickle my finger.
Of course, not everything was rainbow and roses. Sometimes rain would fall on my head or a thorn prickle my finger.
What's the stylistic/rhetorical effect of having "of course" in those places?