Beispiel #1
0
        void saveScene()
        {
            EditorApplication.SaveScene(scenePath);
            lastSaveTimeScene = DateTime.Now;
            isStarted         = true;
            if (showMessage)
            {
                Debug.Log("AutoSave saved: " + scenePath + " on " + lastSaveTimeScene);
            }
            AutoSaver repaintSaveWindow = (AutoSaver)EditorWindow.GetWindow(typeof(AutoSaver));

            repaintSaveWindow.Repaint();
        }
Beispiel #2
0
        static void Init()
        {
            AutoSaver saveWindow = (AutoSaver)EditorWindow.GetWindow(typeof(AutoSaver));

            saveWindow.Show();
        }