public static void CompileInk(InkFile[] inkFiles, bool immediate, Action onComplete)
        {
            InkLibrary.Validate();
            if (onComplete != null)
            {
                onCompleteActions.Add(onComplete);
            }
            StringBuilder filesCompiledLog = new StringBuilder("Files compiled:");

            foreach (var inkFile in inkFiles)
            {
                filesCompiledLog.AppendLine().Append(inkFile.filePath);
            }

            StringBuilder outputLog = new StringBuilder();

            outputLog.Append("Ink compilation started at ");
            outputLog.AppendLine(DateTime.Now.ToLongTimeString());
            outputLog.Append(filesCompiledLog.ToString());
            Debug.Log(outputLog);

            foreach (var inkFile in inkFiles)
            {
                CompileInkInternal(inkFile, immediate);
            }
        }
        public static void CompileInk(InkFile[] inkFiles, bool immediate, Action onComplete = null)
        {
            if (inkFiles == null || inkFiles.Length == 0)
            {
                return;
            }
                        #if UNITY_2019_4_OR_NEWER
            if (!disallowedAutoRefresh)
            {
                disallowedAutoRefresh = true;
                try {
                    AssetDatabase.DisallowAutoRefresh();
                } catch (Exception e) {
                    Debug.LogWarning("Failed DisallowAutoRefresh " + e);
                }
            }
                        #endif

            InkLibrary.Validate();
            if (onComplete != null)
            {
                onCompleteActions.Add(onComplete);
            }
            StringBuilder filesCompiledLog = new StringBuilder("Files compiled:");
            foreach (var inkFile in inkFiles)
            {
                filesCompiledLog.AppendLine().Append(inkFile.filePath);
            }

            StringBuilder outputLog = new StringBuilder();
            outputLog.Append("Ink compilation started at ");
            outputLog.AppendLine(DateTime.Now.ToLongTimeString());
            outputLog.Append(filesCompiledLog.ToString());
            Debug.Log(outputLog);

            foreach (var inkFile in inkFiles)
            {
                CompileInkInternal(inkFile, immediate);
            }
        }