//----------------------------------------------------------------------------- // UIUtilty.cs // // Microsoft XNA Community Game Platform // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; namespace NetworkStateManagement { public static class UIUtility { /// /// Indicates if the game is running on a mobile platform. /// public readonly static bool IsMobile = OperatingSystem.IsAndroid() || OperatingSystem.IsIOS(); /// /// Indicates if the game is running on a desktop platform. /// public readonly static bool IsDesktop = OperatingSystem.IsMacOS() || OperatingSystem.IsLinux() || OperatingSystem.IsWindows(); } }