FairyGUI.GoWrapper.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public override void Dispose()
        {
            if (_wrapTarget != null)
            {
                Object.Destroy(_wrapTarget);
                _wrapTarget = null;
            }

            base.Dispose();
        }

Usage Example

Example #1
0
 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));
     }
 }
All Usage Examples Of FairyGUI.GoWrapper::Dispose