Ejemplo n.º 1
0
    public override void OnTooltip(bool show)
    {
        if (item == null)
        {
            return;
        }

        if (show)
        {
            item.PrepareToolTip();
            UITooltip.AnchorToRect(transform as RectTransform);
            UITooltip.Show();
        }
        else
        {
            UITooltip.Hide();
        }
    }