void OnGUI() { bool value; value = EditorGUILayout.Toggle("Autolock refresh", AutolockRefresh); if (value != AutolockRefresh) { AutolockRefresh = value; EditorPrefs.SetBool("AutolockRefresh", value); } value = EditorGUILayout.Toggle("Hotpatching", HotPatchInstrument); if (value != HotPatchInstrument) { HotPatchInstrument = value; EditorPrefs.SetBool("HotPatchInstrument", value); if (value) { AssemblyPostprocessor.Start(); } } }
private static void HotPatchMenu() { AssemblyPostprocessor.HotPatch(); }