コード例 #1
0
        public static bool SetLocale(string locale)
        {
            foreach (var localeSettings in m_settings.locales)
            {
                if (localeSettings.name.Equals(locale, StringComparison.OrdinalIgnoreCase))
                {
                    m_currentLocaleSettings = localeSettings;
                    return(true);
                }
            }

            Debug.LogWarningFormat("Localization.SetLocale(): locale '{0}' not exists", locale);
            return(false);
        }
コード例 #2
0
 public static void Initialize(LocalizationSettings settings)
 {
     m_settings = settings;
     m_currentLocaleSettings = m_settings.locales[0];
 }