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(); } }
void Start() { Application.runInBackground = true; RunOnWindows = IsWindowsPlatform(); //DataBase.LoadSystem(); reLoadData(); main = this; }
// Use this for initialization void Start() { instance = this; iterationData = new byte[maxIterations][]; academies = new Academy[maxIterations]; }