public void OnEndDrag(PointerEventData eventData) { if (((RectTransform)_originalParent.transform.parent).rect.Contains(_rect.anchoredPosition)) { Injecting(); } else { Ejecting?.Invoke(); Destroy(_oldPlase.gameObject); } }
private void Eject() { Ejecting?.Invoke(); }