public void OnEndDrag(PointerEventData eventData) { Debug.Log("End Drag"); isDragged = false; if (_selection.mouseOverRecycle) { _recycle.RecyleIdea(this.transform.parent.gameObject); } if (_selection.mouseOverBook) { ResetRotation(); _bookManager.AddIdeaToBook(this.transform.parent.gameObject); } _selection.selectedObj = null; }
private void OnTriggerEnter2D(Collider2D other) { _recycle.RecyleIdea(other.gameObject); }