void OnDisable() { if (!freeItem) { DragDropHelper.TryRemoveItem(this, attachedTarget); } }
void OnDisable() { if (!freeItem) { DragDropHelper.TryRemoveItem(this, this.attachedTarget); } m_parentWhenDragging = null; m_waitForSeconds = null; lastTarget = null; DragDropRegistry.Instance.UnRegister(this); }