Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
	public static void Destroy (ref VectorPoints line, GameObject go) {
		Destroy (ref line);
		if (go != null) {
			Object.Destroy (go);
		}
	}
Exemplo n.º 3
0
	public static void Destroy (VectorPoints[] lines) {
		for (int i = 0; i < lines.Length; i++) {
			DestroyPoints (ref lines[i]);
		}
	}
Exemplo n.º 4
0
	private static void DestroyPoints (ref VectorPoints line) {
		if (line != null) {
			Object.Destroy (line.m_vectorObject);
			if (line.isAutoDrawing) {
				line.StopDrawing3DAuto();
			}
			line = null;
		}
	}
Exemplo n.º 5
0
	public static void Destroy (ref VectorPoints line) {
		DestroyPoints (ref line);
	}