public void OnDestroy()
 {
     if (toolbarButton != null)
     {
         toolbarButton.Destroy();
     }
 }
Example #2
0
 public void OnDestroy()
 {
     //print("###OnDestroy - Biomatic");
     if (toolbarButton != null)
     {
         toolbarButton.Destroy();
     }
 }
Example #3
0
 internal void DestroyToolbarButton()
 {
     if (_toolbarButton != null)
     {
         _toolbarButton.Destroy();
     }
     _toolbarButton = null;
 }
Example #4
0
 /// <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;
 }
Example #5
0
 //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.");
     }
 }