public void OnDestroy() { if (gui != null) { gui.OnDestroy(); } }
/// <summary>Called by Unity when plugin is unloaded</summary> public void OnDestroy() { mainButton.Destroy(); if (gui != null) { gui.OnDestroy(); } }
/// <summary>Called by Unity when plugin is unloaded</summary> public void OnDestroy() { Debug.Log("[Kerbulator] Destroy"); if (gui != null) { gui.OnDestroy(); } gui = null; RemoveToolbarButton(); }