我遇到错误
NullReferenceException:对象引用未设置为的实例 对象SinglePoint.Update()(位于Assets / Script / SinglePoint.cs:52)
这是我的代码块
if (Input.GetMouseButtonDown (0)) {
//line 52 where error exists: Vector3
currentPosition=Camera.main.ScreenToWorldPoint(Input.mousePosition);
currentPosition.z=-5.0f;
InstatiateCirclePoint(currentPosition,currentLineRenderer.transform);
}