Hi everyone. I am newbie and sorry if this post is totally lame, but I cannot resolved this problem.
I wanted to my character jump. So i googled for some helping script and mostly recomended is this: http://docs.unity3d.com/Documentation/ScriptReference/CharacterController.Move.html. I created new script and just pasted the code. Drag the script to my temporary character, and push “Play”. Unofortunately errors are showing:
NullReferenceException: Object reference not set to an instance of an object
Move.Update () (at Assets/Move.js:15)
This is the line with if (controller.isGrounded) {
And no reaction.
Of course I know this mean controller have value null, but i don’t know why. I tried use simpler code:
http://docs.unity3d.com/Documentation/ScriptReference/CharacterController.SimpleMove.html and there is the same problem.
Should I create this CharacterController or what?