mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 19:55:09 +00:00
23 lines
508 B
C#
23 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);
|
|
}
|
|
}
|
|
}
|