Platform.cs 599 B

123456789101112131415161718192021222324252627
  1. using UnityEngine;
  2. namespace TapSDK.Core
  3. {
  4. public class Platform
  5. {
  6. public static bool IsAndroid()
  7. {
  8. return Application.platform == RuntimePlatform.Android;
  9. }
  10. public static bool IsIOS()
  11. {
  12. return Application.platform == RuntimePlatform.IPhonePlayer;
  13. }
  14. public static bool IsWin32()
  15. {
  16. return Application.platform == RuntimePlatform.WindowsPlayer;
  17. }
  18. public static bool IsMacOS()
  19. {
  20. return Application.platform == RuntimePlatform.OSXPlayer;
  21. }
  22. }
  23. }