void Update() { if (connectedMarker.Length > 1) { for (int i = 0, j = 1; j < connectedMarker.Length; ++i, ++j) { Debug.DrawLine(connectedMarker[i].position, connectedMarker[j].position); } } }