Beispiel #1
0
    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;
    }