Esempio n. 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;
    }
Esempio n. 2
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     _recycle.RecyleIdea(other.gameObject);
 }