private void ShowNameAtMousePosition() { int time = -1; #if UNITY_ANDROID time = 2; #endif FloatTipsPanel.ShowText(InputManager.mousePosition, GetMapIconName(), time); }
public void OnPointerClick(PointerEventData eventData) { #if UNITY_ANDROID if (!string.IsNullOrEmpty(infoToShow)) { if (!autoHide) { FloatTipsPanel.ShowText(transform.position, infoToShow, closeBtn: true); } else { FloatTipsPanel.ShowText(transform.position, infoToShow, hideDelay); } } #endif }
public void OnPointerClick(PointerEventData eventData) { if (eventData.button == PointerEventData.InputButton.Left) { #if UNITY_STANDARD if (DragableManager.Instance.IsDraging) { ItemSlotAgent source = DragableManager.Instance.Current as ItemSlotAgent; if (source) { InventoryUtility.DiscardItem(Window.Handler, source.Item); source.FinishDrag(); } } else { OpenDiscardWindow(); } #elif UNITY_ANDROID OpenDiscardWindow(); FloatTipsPanel.ShowText(transform.position, "将物品拖拽到此按钮丢弃,或者点击该按钮进行多选。", 3); #endif } }