public override void OnPointerClick(PointerEventData eventData)
 {
     base.OnPointerClick(eventData);
     if (IsHovered)
     {
         ResourceMonitorDisplay.ChangePageBy(AmountToChangePageBy);
     }
 }
Ejemplo n.º 2
0
        public virtual void OnPointerEnter(PointerEventData eventData)
        {
            if (InInteractionRange())
            {
                IsHovered = true;
            }

            isHoveredOutOfRange = true;
            ResourceMonitorDisplay.ResetIdleTimer();
        }
        private void TurnDisplayOff()
        {
            if (IsBeingDeleted == true)
            {
                return;
            }

            if (rmd != null)
            {
                rmd.TurnDisplayOff();
                Destroy(rmd);
                rmd = null;
            }
        }
        private void TurnDisplayOn()
        {
            if (IsBeingDeleted == true)
            {
                return;
            }

            if (rmd != null)
            {
                TurnDisplayOff();
            }

            rmd = gameObject.AddComponent <ResourceMonitorDisplay>();
            rmd.Setup(this);
        }
Ejemplo n.º 5
0
 public virtual void OnPointerClick(PointerEventData eventData)
 {
     ResourceMonitorDisplay.ResetIdleTimer();
 }
Ejemplo n.º 6
0
 public virtual void OnPointerExit(PointerEventData eventData)
 {
     IsHovered           = false;
     isHoveredOutOfRange = false;
     ResourceMonitorDisplay.ResetIdleTimer();
 }