public void OnPointerDown(PointerEventData eventData) { if (false == isShow) { transform.localScale = new Vector3(0.9f, 0.9f, 0.9f); } else { Debug.Log(rect.gameObject.name); TipsMgr.OpenTreasureTip(rect.localPosition, ItemData, Alignment.M, new Vector2(-50, 230)); } }