private void CreateSingleLine(DebugHolder debugHolder) { GameObject gameObject = Instantiate(debugLinePrefab); DebugLine line = gameObject.GetComponent <DebugLine>(); if (line != null) { line.Create(debugHolder.dataHolder); debugHolder.debugLine = line; } }