public void OnPointerClick(PointerEventData eventData) { if (stamp.isFollowMouse) { agendaOk = true; stamp.isFollowMouse = false; stamp.rectTransform.anchoredPosition = new Vector2(1220, 390); stamp.GetComponent <Image>().raycastTarget = true; Instantiate(confirm, transform.GetChild(0).transform); } }