public void OnDestroy() { if (toolbarButton != null) { toolbarButton.Destroy(); } }
public void OnDestroy() { //print("###OnDestroy - Biomatic"); if (toolbarButton != null) { toolbarButton.Destroy(); } }
internal void DestroyToolbarButton() { if (_toolbarButton != null) { _toolbarButton.Destroy(); } _toolbarButton = null; }
/// <summary> /// Destroys theToolbarButtonWrapper object /// </summary> /// <param name="btnToDestroy">Object to Destroy</param> internal void DestroyToolbarButton(ToolbarButtonWrapper btnToDestroy) { if (btnToDestroy != null) { KACWorker.DebugLogFormatted("Destroying Toolbar Button"); btnToDestroy.Destroy(); } btnToDestroy = null; }
//Cleans up buttons on scene change private void OnDestroy() { if (_appButton != null) { ApplicationLauncher.Instance.RemoveModApplication(_appButton); } _biomeButton.Destroy(); if (_debug) { Debug.Log("(CB) Custom Biomes button destroyed."); } }