Пример #1
0
        private void Update()
        {
            string line;

            while (m_Commands.TryDequeue(out line))
            {
                CommandOutput?.Invoke(line);
                AnyOutput?.Invoke(line);
            }

            while (m_StandardOutput.TryDequeue(out line))
            {
                StandardOutput?.Invoke(line);
                AnyOutput?.Invoke(line);
            }

            while (m_ErrorOutput.TryDequeue(out line))
            {
                ErrorOutput?.Invoke(line);
                AnyOutput?.Invoke(line);
            }

            if (HasFinished)
            {
                EditorApplication.update -= Update;
                AssemblyReloadEvents.beforeAssemblyReload -= AssemblyReload;

                Completed?.Invoke(this);
            }
            ;
        }
 private void ServerProcess_OutputDataReceived(object sender, DataReceivedEventArgs e)
 {
     StandardOutput?.Invoke(this, e);
 }