Exemplo n.º 1
0
        private void Update()
        {
            if (!_isPointerDown)
            {
                return;
            }
            _waitingTimeToOpenInformation += Time.unscaledDeltaTime;

            if (_waitingTimeToOpenInformation > TimeToPopupInformation &&
                QuickInformationPopup.Instance && !QuickInformationPopup.Instance.gameObject.activeSelf)
            {
                QuickInformationPopup.Open(Item);
            }
        }
Exemplo n.º 2
0
 public void OnPointerUp(PointerEventData eventData)
 {
     _waitingTimeToOpenInformation = 0;
     _isPointerDown = false;
     QuickInformationPopup.Close();
 }