public void OnMouseDown() { isTooltipVisible = false; ActionbarsTooltip.Hide(); target = null; }
public void OnMouseLeave() { if (target == null) { return; } var mousePosition = Input.mousePosition; mousePosition.y = Screen.height - mousePosition.y; if (!target.GetScreenRect().Contains(mousePosition, true)) { isTooltipVisible = false; ActionbarsTooltip.Hide(); target = null; } }