| 123456789101112131415161718192021222324252627 |
- using UnityEngine;
- namespace TapSDK.Core
- {
- public class Platform
- {
- public static bool IsAndroid()
- {
- return Application.platform == RuntimePlatform.Android;
- }
- public static bool IsIOS()
- {
- return Application.platform == RuntimePlatform.IPhonePlayer;
- }
- public static bool IsWin32()
- {
- return Application.platform == RuntimePlatform.WindowsPlayer;
- }
- public static bool IsMacOS()
- {
- return Application.platform == RuntimePlatform.OSXPlayer;
- }
- }
- }
|