Ejemplo n.º 1
0
        //----- property -----

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

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

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