Files
EndlessHostRoles/Modules/MonoHelpers/OperatingSystem.cs
T
2026-09-17 18:40:21 +02:00

12 lines
363 B
C#

using UnityEngine;
namespace EHR;
public static class OperatingSystem
{
private static readonly bool Windows = Application.platform == RuntimePlatform.WindowsPlayer;
private static readonly bool Android = Application.platform == RuntimePlatform.Android;
public static bool IsWindows() => Windows;
public static bool IsAndroid() => Android;
}