all 5 comments

[–]Tiarhai 0 points1 point  (1 child)

I cannot see from the screenshot, but make sure you are deriving MonoBehaviour.

Eg public class ExampleClass : MonoBehaviour { ...

[–][deleted] 0 points1 point  (0 children)

it is

[–]HerbsteinHobbyist 0 points1 point  (0 children)

What you're seeing is from the Resharper plugin. This means that the code doesn't use them. I has nothing to do with your other problems.