ZoeRobotIngles/Assets/Scripts/TestsAleatorios/TestRunShell.cs

17 lines
462 B
C#

using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using UnityEngine;
public class TestRunShell : MonoBehaviour
{
// Start is called before the first frame update
public void RunShell() {
ProcessStartInfo proc = new ProcessStartInfo();
proc.FileName = "arquivoteste.sh";
proc.WorkingDirectory = Application.dataPath;
proc.UseShellExecute = true;
Process.Start(proc);
}
}