//----- property ----- //----- method ----- public static void Open() { if (instance != null) { instance.Close(); } instance = EditorWindow.GetWindow <AtlasPacker>(false, "SpritePacker", true); instance.Initialize(); }
void OnDisable() { instance = null; }
void OnEnable() { instance = this; }