1234567891011121314151617181920212223242526272829 |
- 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<int>("getLanType");
- }
- }
- }
|