|
I'm new to scripting, so I used a script from the "Unity Game Development Essentials" book that uses a raycast to trigger a door open and close animation. As you can see there is a section of code that is commented out that originally had the script triggering the door upon collision. That part of the script worked fine and the door was opening and closing with no problem. When I modified the script to use raycasting, now nothing happens and I get the following error back. “NullReferenceException: Object reference not set to an instance of an object PlayerCollisions.Update () (at Assets/Scripts/PlayerCollisions.js:12)” And line 12 is: can someone please help?
(comments are locked)
|
You have a spelling error there, but I don't know if it would produce that error message. You forgot the r in fo*r*ward. Strange that it says nullreference though. I guess we should wait till he fixes the typo and comes back.
Dec 06 '11 at 10:05 AM
Rabwin
(comments are locked)
|
