Beispiel #1
0
        private static void OnLangFailure(object cookie)
        {
            Lang   lang = Service.Get <Lang>();
            string text = "en_US";

            if (lang.Locale != text)
            {
                lang.Locale = text;
                Service.Get <ServerPlayerPrefs>().SetPref(ServerPref.Locale, text);
                LangUtils.AddLocalStringsData(text);
                lang.UnloadAssets();
                LangUtils.LoadStringData((AssetsCompleteDelegate)cookie);
                return;
            }
            LangUtils.OnLangComplete(null, cookie);
        }
Beispiel #2
0
 public unsafe static long $Invoke0(long instance, long *args)
 {
     LangUtils.AddLocalStringsData(Marshal.PtrToStringUni(*(IntPtr *)args));
     return(-1L);
 }