Esempio n. 1
0
        private void Update()
        {
            if (!m_compiling)
            {
                return;
            }

            m_timer -= Time.deltaTime;
            if (m_timer <= 0)
            {
                m_timer = 0;

                if (!EditorApplication.isCompiling)
                {
                    m_compiling = false;

                    GenerateScriptableObject();
                    AssetDatabase.Refresh();
                    TEDDebug.Log("[ClientDatabaseTool] - Generating client database scripts has completed.");

                    EditorUtility.ClearProgressBar();

                    ClientDatabaseTool window = EditorWindow.GetWindow <ClientDatabaseTool>();
                    window.Close();
                }
            }
        }
Esempio n. 2
0
        private static void GenerateScript()
        {
            ClientDatabaseTool window = EditorWindow.GetWindow <ClientDatabaseTool>();

            window.StartGenerateScript();
        }