Beispiel #1
0
        public void Show(SpellInfo tooltipSpell, RectTransform targetRect, TooltipAlignment alignment, TooltipSize size)
        {
            if (currentTooltip != null && currentTooltip.Item is TooltipItemSpell == false)
            {
                currentTooltip.Hide();
            }

            TooltipSpell.ModifyContent(tooltipSpell);
            Show(TooltipSpell.Slot, targetRect, alignment, size);
        }
Beispiel #2
0
 public void Hide()
 {
     currentTooltip?.Hide();
     currentTooltip = null;
 }