public override void OnPointerClick(PointerEventData eventData) { base.OnPointerClick(eventData); if (IsHovered) { ResourceMonitorDisplay.ChangePageBy(AmountToChangePageBy); } }
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); }
public virtual void OnPointerClick(PointerEventData eventData) { ResourceMonitorDisplay.ResetIdleTimer(); }
public virtual void OnPointerExit(PointerEventData eventData) { IsHovered = false; isHoveredOutOfRange = false; ResourceMonitorDisplay.ResetIdleTimer(); }