Hallo
My script(ReadShield.js) is in the screenshot below:
the highlighted line marks the critical location: Sometimes(not always) I get this error:
NullReferenceException
UnityEngine.Component.GetComponent (System.String type)
ReadShield.OnTriggerEnter (UnityEngine.Collider other) (at Assets\Scripts\ReadShield.js:11)
It seems that unity does not always find the specified component or the “current” camera.
Please help me, I’m getting mad because of that.
