using UnityEngine; namespace SC.XR.Unity.Module_DetectorSystem { public class LanguagePluginAndroid : LanguagePlugin { public static LanguagePluginAndroid Create() { return new LanguagePluginAndroid(); } private AndroidJavaObject LanguagePluginAndroidObject; LanguagePluginAndroid() { if (Application.platform == RuntimePlatform.Android) { LanguagePluginAndroidObject = new AndroidJavaObject("com.xr.language.LangSys", AndroidPluginBase.CurrentActivity); } } public override SCLanguageEnum GetSystemLanguage() { return (SCLanguageEnum)LanguagePluginAndroidObject.Call("getLanType"); } } }