Chatterer.chatterer.OnDestroy C# (CSharp) Method

OnDestroy() private method

private OnDestroy ( ) : void
return void
        internal void OnDestroy()
        {
            // Remove the button from the Blizzy's toolbar
            if (chatterer_toolbar_button != null)
            {
                chatterer_toolbar_button.Destroy();
            }
            // Un-register the callbacks
            GameEvents.onGUIApplicationLauncherReady.Remove(OnGUIApplicationLauncherReady);
            GameEvents.onGameSceneLoadRequested.Remove(OnSceneChangeRequest);

            // Remove the button from the KSP AppLauncher
            launcherButtonRemove();
        }
chatterer