예제 #1
0
        public void Drop(BaseEventData eventData)
        {
            if (eventData.selectedObject == null)
            {
                return;
            }

            if (trashEnabled && eventData.selectedObject.TryGetComponent(out NoteView view))
            {
                noteManager.DestroyNote(view);
            }
        }
예제 #2
0
    public void TriggerNoteDelete()
    {
        string id = transform.parent.parent.GetComponent <NoteInfo>().GetId();

        noteManager.DestroyNote(id);
    }