protected override void Initialize() { base.Initialize(); _line.MakeCube(Vector3.zero, Size.x, Size.y, Size.z); Vector3[] centerPoint = new Vector3[] { new Vector3(0F, 0F, 0F) }; _pointLine = new VectorPoints("CenterPoint", centerPoint, Color.ToUnityColor(), material, 2F); }
public static void Destroy (ref VectorPoints line, GameObject go) { Destroy (ref line); if (go != null) { Object.Destroy (go); } }
public static void Destroy (VectorPoints[] lines) { for (int i = 0; i < lines.Length; i++) { DestroyPoints (ref lines[i]); } }
private static void DestroyPoints (ref VectorPoints line) { if (line != null) { Object.Destroy (line.m_vectorObject); if (line.isAutoDrawing) { line.StopDrawing3DAuto(); } line = null; } }
public static void Destroy (ref VectorPoints line) { DestroyPoints (ref line); }