protected override void CreateChildren() { base.CreateChildren(); _tooltip = new TooltipInstance(); //AddChild(_tooltip); }
void LateUpdate() { tooltip = this; // if any mouse is pressed so checking if it pressed on no button. // pressed on no button will hide this tooltip. if (Input.GetMouseButton(0) || Input.GetMouseButton(1)) { onpress = true; } else { if (onpress || MouseLock.MouseLocked) { if (!interactive) { HideTooltip(); } interactive = false; onpress = false; } } }
void Awake() { instance = this; HideTooltip (); }
void Start() { tooltip = this; interactive = false; HideTooltip(); }