public float ShowArrow(GameObject markerObject, bool navigatable, ArrowDirection arrowDirection) { GameObject arrowObj = GetARObjectOfType(markerObject, ARObject.Type.Arrow); ArrowScript arrowsc = arrowObj.GetComponent <ArrowScript>(); switch (arrowDirection) { case ArrowDirection.Up: arrowsc.PointArrowUp(); break; case ArrowDirection.Down: arrowsc.PointArrowDown(); break; case ArrowDirection.Front: arrowsc.PointToZero(); break; default: arrowsc.PointToZero(); break; } arrowObj.SetActive(true); SendLastObject(arrowsc.Type); return(arrowObj.transform.localRotation.eulerAngles.z); }