I get the folliwng error- “NullReferenceException: Object reference not set to an instance of an object”,
and it refers me to the following line in my code-
" if (!Touchscreen.current.primaryTouch.press.isPressed) ".
Update-
If I erase those line, the error occures again, and it refers me to the next line that includes “Touchscreen”.
The game works fine.
Any advice?
Thanks!
Aviv