internal void ShowInfoTag(TagAnchor.Orientation orientation) { float offset = infoTag.transform.Find("Background").GetComponent <RectTransform>().sizeDelta.x + transform.Find("Canvas").GetComponent <RectTransform>().sizeDelta.x * 0.5f; if (orientation == TagAnchor.Orientation.LEFT) { infoTag.transform.localPosition = new Vector3(-offset * infoTag.transform.localScale.x, infoTag.transform.localPosition.y, infoTag.transform.localPosition.z); } infoTag.gameObject.SetActive(true); infoTag.Show(content, imagePath); }
private void ShowInfoTag() { TagAnchor.Orientation orientation = this.selectedInfoPoint.transform.GetComponentInParent <TagAnchor>().orientation; this.selectedInfoPoint.ShowInfoTag(orientation); }