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