Hey, I have problem with this code and I don’t know what to do.
He writes me this misstake: NullReferenceException: Object reference not set to an instance of an object
NullReferenceException means you’re trying to use a variable that doesn’t have any value assigned to it. Basically, that can happen any time you put a “.” after the variable that doesn’t have a value.
So probably either m_Camera or m_CharacterController has not had any value assigned to it when your code is running. If those are public fields, and you look at this object in Unity’s inspector, you’ll probably see that one or both of them has a value of “none” or “missing”.