/// <summary> /// Called by Unity when the application is destroyed. /// </summary> public void OnApplicationQuit() { _logger.Trace("OnApplicationQuit"); if (_button != null) { _button.Remove(); _button.Open -= Button_Open; _button.Close -= Button_Close; _button = null; } }
public void Remove( ) { // _logger.Info( "Remove" ); if (_button != null) { _button.Open -= OnButtonOn; _button.Close -= OnButtonOff; _button.Remove( ); _button = null; } }