Пример #1
0
    public void OnPointerEnter(PointerEventData eventData)//用于PC悬停
    {
#if UNITY_STANDALONE
        NewWindowsManager.OpenWindow <ItemWindow>(this);
        if (!DragableManager.Instance.IsDraging)
        {
            Select();
        }
#endif
    }
Пример #2
0
    public void OnPointerExit(PointerEventData eventData)//用于安卓拖拽、PC悬停
    {
#if UNITY_STANDALONE
        NewWindowsManager.CloseWindow <ItemWindow>();
        if (!DragableManager.Instance.IsDraging)
        {
            DeSelect();
        }
#elif UNITY_ANDROID
        if (pressCoroutine != null)
        {
            StopCoroutine(pressCoroutine);
        }
#endif
    }