Need help

I’m just starting to learn the C# script and am doing the first tutorial. I type everything the exact same as the tutorial video but it says error CS0120 An object reference is required to access non-static… etc.

Don’t use GameObject.renderer, just use .renderer. The gameObject reference is assumed in monobehaviours.

(also this thread is in the wrong place)

moved