mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 11:39:54 +00:00
12 lines
363 B
C#
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;
|
|
} |