protected virtual void ThreadFunction()
    {
        int ExitCode;
        ProcessStartInfo ProcessInfo;
        Process          Process;

        ProcessInfo = new ProcessStartInfo("cmd.exe", "/c " + command);

        ProcessInfo.CreateNoWindow = false;//Change that

        ProcessInfo.UseShellExecute = false;

        Process = Process.Start(ProcessInfo);


        Process.WaitForExit();


        ExitCode = Process.ExitCode;
        Process.Close();

        UnityEngine.Debug.Log("ExitCode: " + ExitCode.ToString());

        if (resetRunningCheckpointThreadOnEnd)
        {
            LoadExternal.NotifyCheckpointModelCreated();
        }
    }
예제 #2
0
 void Start()
 {
     Application.runInBackground = true;
     RunOnWindows = IsWindowsPlatform();
     //DataBase.LoadSystem();
     reLoadData();
     main = this;
 }
예제 #3
0
 // Use this for initialization
 void Start()
 {
     instance      = this;
     iterationData = new byte[maxIterations][];
     academies     = new Academy[maxIterations];
 }