/*
  * Called when plug in loaded
  */
 public void Awake()
 {
     try {
         this.HandleAwake();
         this._editorToolbar = new EditorToolbar(this);
     } catch (Exception e) {
         Log.ex(this, e);
     } finally {
         Log.dbgGui(this, "Awake handled.");
     }
 }
 /*
  * Called when plug in is unloaded
  */
 public void OnDisable()
 {
     try {
         this.HandleDisable();
         this._editorToolbar.OnDisable(); this._editorToolbar = null;
     } catch (Exception e) {
         Log.ex(this, e);
     } finally {
         Log.dbgGui(this, "OnDisable handled.");
     }
 }
 /// <summary>
 /// the initial start of the class with preparing of the toolbar
 /// </summary>
 private void Awake()
 {
     try
     {
         instance = this;
         Debug.Log(string.Format("{0}- {1} => Awake", Constants.logPrefix, instance.GetType()));
         if (UbioZurWeldingLtd.instance != null)
         {
             if (UbioZurWeldingLtd.instance.config.useStockToolbar)
             {
                 initToolbar();
             }
         }
         //this._iconTexture = GameDatabase.Instance.GetTexture(Constants.settingIconGetPath, false);
     }
     catch (Exception exception)
     {
         Debug.LogError(string.Format("{0}- {1} => Awake", Constants.logPrefix, instance.GetType()));
         Debug.LogException(exception, this);
     }
 }