Exemple #1
0
        protected override void CreateChildren()
        {
            base.CreateChildren();

            _tooltip = new TooltipInstance();
            //AddChild(_tooltip);
        }
Exemple #2
0
 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 ();
 }
Exemple #4
0
 void Start()
 {
     tooltip     = this;
     interactive = false;
     HideTooltip();
 }