16 lines
453 B
C#
16 lines
453 B
C#
using UnityEngine;
|
|
|
|
namespace Runtime.Printer.Citizen
|
|
{
|
|
public static class CitizenPrinterManager
|
|
{
|
|
public static void StartPrinting(string str)
|
|
{
|
|
System.Diagnostics.Process process = null;
|
|
process = System.Diagnostics.Process.Start("PrinterConsole.exe", str);
|
|
process?.WaitForExit();
|
|
process?.Close();
|
|
Debug.Log($"done printing content is {str}");
|
|
}
|
|
}
|
|
} |