void saveScene() { EditorSceneManager.SaveScene(scene); //EditorApplication.SaveScene(scene); lastSaveTimeScene = DateTime.Now; isStarted = true; if (showMessage) { Debug.Log("AutoSave saved: " + scene + " on " + lastSaveTimeScene); } AutoSaveScene repaintSaveWindow = (AutoSaveScene)EditorWindow.GetWindow(typeof(AutoSaveScene)); repaintSaveWindow.Repaint(); }
static void Init() { AutoSaveScene saveWindow = (AutoSaveScene)EditorWindow.GetWindow(typeof(AutoSaveScene)); saveWindow.Show(); }