public static void VisibilityRemove(int objectNumber) { if (objectNumber >= vectorLines2.Count) { Debug.LogError("VectorManager: object number exceeds array length in VisibilityRemove"); return; } for (int i = objectNumber + 1; i < _arrayCount2; i++) { objectNumbers2[i].i--; } vectorLines2.RemoveAt(objectNumber); objectNumbers2.RemoveAt(objectNumber); _arrayCount2--; VectorLine.LineManagerDisable(); }