public void Drop(BaseEventData eventData) { if (eventData.selectedObject == null) { return; } if (trashEnabled && eventData.selectedObject.TryGetComponent(out NoteView view)) { noteManager.DestroyNote(view); } }
public void TriggerNoteDelete() { string id = transform.parent.parent.GetComponent <NoteInfo>().GetId(); noteManager.DestroyNote(id); }