public TooltipTextContainer TooltipOpenLarge(TimeIntervalData timeIntervalData, bool faceLeft) { GameObject newTooltip = Instantiate(toolTipExpandedPrefab, transform, false); TooltipTextContainer ttC = newTooltip.GetComponent <TooltipTextContainer>(); ttC.Unpack(timeIntervalData, faceLeft); return(ttC); }
public void OnPointerExit(PointerEventData eventData) { if (tooltipLarge != null) { Destroy(tooltipLarge.gameObject); tooltipLarge = null; } if (tooltip != null) { Destroy(tooltip.gameObject); tooltip = null; } }
public void OnPointerClick(PointerEventData eventData) { if (tooltipLarge == null) { tooltipLarge = sneakDiaryRef.TooltipOpenLarge(timeIntervalData, faceLeft); CorrectTransformPosition(tooltipLarge.transform, tooltipLarge.myRect); if (tooltip != null) { Destroy(tooltip.gameObject); tooltip = null; } } }