public void Cancel() { if (_agent.parent != null) { _agent.StopDrag(); GRoot.inst.RemoveChild(_agent); _sourceData = null; } }
static public int Cancel(IntPtr l) { try { FairyGUI.DragDropManager self = (FairyGUI.DragDropManager)checkSelf(l); self.Cancel(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }