Hi Ramunator,
NullReferenceException means that a reference (“link”) to an instance is missing. Double click on the error message to see to which line in your code it is referring. If you exposed a field in the Inspector, make sure that it’s not empty.
Did this help?
See also:
- Forum User Guides : How to mark a topic as solved