void OnMouseDown() { //if (!EventSystem.current.IsPointerOverGameObject ()) { if (HandComp) { HandComp.HideDelayedCancel = true; PlayClickSound(); } //Debug.Log (" OnMouseDown pawn handidx: " + pawnComponent.handIndex + " touch:" + Input.touchCount); if (HandComp && HandComp.Hided) { HandComp.HandShowHideModeAutoEnabled = false; HandComp.DisableTouchEnterOfCardsInHand(); HandComp.ShowHand(); } else { if (Input.touchCount == 0 && !simulateTouches) { isMouseOver = false; isNowDrag = true; isNowTouched = false; } else { Debug.Log("Set touch"); isNowTouched = true; if (HandComp) { HandComp.EnableTouchEnterOfCardsInHand(); } } dist = Camera.main.WorldToScreenPoint(transform.position); } if (CardPanelComp != null) { CardPanelComp.RefreshCardPosition(); CardPanelComp.KeepCardPosition = false; } //} else { // Debug.LogWarning ("Mouse is not over - event dropped"); //} }