mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-12-17 22:10:00 +00:00
24 lines
508 B
C#
24 lines
508 B
C#
|
namespace Starpelly
|
||
|
{
|
||
|
public static class OS
|
||
|
{
|
||
|
private static readonly OperatingSystem.IOperatingSystem _os;
|
||
|
|
||
|
static OS()
|
||
|
{
|
||
|
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
||
|
_os = new OperatingSystem.Windows();
|
||
|
#elif UNITY_STANDALONE_LINUX || UNITY_EDITOR_LINUX
|
||
|
_os = new OperatingSystem.Linux();
|
||
|
#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
|
||
|
_os = new OperatingSystem.MacOS();
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
public static void ChangeWindowTitle(string newTitle)
|
||
|
{
|
||
|
_os.ChangeWindowTitle(newTitle);
|
||
|
}
|
||
|
}
|
||
|
}
|