コード例 #1
0
 void OnDisable()
 {
     if (!freeItem)
     {
         DragDropHelper.TryRemoveItem(this, attachedTarget);
     }
 }
コード例 #2
0
        void OnDisable()
        {
            if (!freeItem)
            {
                DragDropHelper.TryRemoveItem(this, this.attachedTarget);
            }

            m_parentWhenDragging = null;
            m_waitForSeconds     = null;
            lastTarget           = null;

            DragDropRegistry.Instance.UnRegister(this);
        }