Example #1
0
        //----- property -----

        //----- method -----

        public static void Open()
        {
            if (instance != null)
            {
                instance.Close();
            }

            instance = EditorWindow.GetWindow <AtlasPacker>(false, "SpritePacker", true);
            instance.Initialize();
        }
Example #2
0
 void OnDisable()
 {
     instance = null;
 }
Example #3
0
 void OnEnable()
 {
     instance = this;
 }