//-------------------------------------------------------------------------------------------------------------
 #endregion
 //-------------------------------------------------------------------------------------------------------------
 #region Class methods
 //-------------------------------------------------------------------------------------------------------------
 // Insert static methods here
 /// <summary>
 /// Ascensor to shared instance.
 /// </summary>
 /// <returns>The shared instance.</returns>
 public static DGWFindPackage SharedInstance()
 {
     if (kSharedInstance == null)
     {
         kSharedInstance = ScriptableObject.CreateInstance("DGWFindPackage") as DGWFindPackage;
         kSharedInstance.ReadPaths();
     }
     return(kSharedInstance);
 }
Exemplo n.º 2
0
        //-------------------------------------------------------------------------------------------------------------
        /// <summary>
        /// Raises the enable event.
        /// </summary>
        public void OnEnable()
        {
            LoadPreferences();
            Texture2D tImageLogo = AssetDatabase.LoadAssetAtPath <Texture2D>(DGWFindPackage.PathOfPackage("/Scripts/Editor/Idemobi.png"));

            IdemobiContent = new GUIContent(tImageLogo);
            Texture2D tImageLogoDGW = AssetDatabase.LoadAssetAtPath <Texture2D>(DGWFindPackage.PathOfPackage("/Scripts/Editor/DoxygenGeneratorWindow_Icon.png"));

            DGWContent   = new GUIContent(tImageLogoDGW);
            titleContent = new GUIContent("DoxyGW", tImageLogoDGW);
            // set size of window
            this.minSize = new Vector2(300, 300);
            this.maxSize = new Vector2(2048, 2048);
        }