public override void Dispose() { if (_wrapTarget != null) { Object.Destroy(_wrapTarget); _wrapTarget = null; } base.Dispose(); }
static public int Dispose(IntPtr l) { try { FairyGUI.GoWrapper self = (FairyGUI.GoWrapper)checkSelf(l); self.Dispose(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }