Step 1: Find the derivative.
Since
\[
f(x)
\]
is increasing in
\[
(-\infty,0)\cup(1,\infty)
\]
and decreasing in
\[
(0,1),
\]
its derivative has zeros at
\[
x=0
\quad\text{and}\quad
x=1.
\]
Hence,
\[
f'(x)=k\,x(x-1),
\]
where
\[
k>0.
\]
Given,
\[
f'(2)=6,
\]
so
\[
2k=6,
\]
which gives
\[
k=3.
\]
Thus,
\[
f'(x)=3x(x-1).
\]
Step 2: Find \(f(x)\).
Integrating,
\[
f(x)=x^3-\frac32x^2+C.
\]
Since the curve passes through the origin,
\[
f(0)=0,
\]
so
\[
C=0.
\]
Hence,
\[
f(x)=x^3-\frac32x^2.
\]
Step 3: Apply Lagrange's Mean Value Theorem.
By LMVT,
\[
f'(c)
=
\frac{f(2)-f(0)}{2-0}.
\]
Now,
\[
f(2)
=
8-6
=
2.
\]
Therefore,
\[
\frac{f(2)-f(0)}2
=
1.
\]
Hence,
\[
3c(c-1)=1,
\]
or
\[
3c^2-3c-1=0.
\]
Therefore,
\[
\boxed{3c^2-3c-1=0.}
\]
Thus,
\[
\boxed{(C)}
\]
is the correct answer.