LanguagePlugin.cs 1010 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using UnityEngine;
  2. using UnityEngine.Events;
  3. namespace SC.XR.Unity.Module_DetectorSystem
  4. {
  5. public class LanguagePlugin
  6. {
  7. private static LanguagePlugin instance;
  8. public static LanguagePlugin Instance
  9. {
  10. get
  11. {
  12. if (instance == null)
  13. {
  14. if (Application.isEditor)
  15. {
  16. instance = LanguagePluginWin.Create();
  17. }
  18. else if (!Application.isEditor && Application.platform == RuntimePlatform.Android)
  19. {
  20. instance = LanguagePluginAndroid.Create();
  21. }
  22. else
  23. {
  24. instance = LanguagePluginOther.Create();
  25. }
  26. }
  27. return instance;
  28. }
  29. }
  30. public virtual SCLanguageEnum GetSystemLanguage()
  31. {
  32. return 0;
  33. }
  34. }
  35. }