コード例 #1
0
 public void SetLocale(LOCALE locale)
 {
     Managers.Data.FileData.Locale = locale;
     LoadLocale(locale);
     Managers.Data.Save();
     //Messenger.Broadcast(Events.LOCALE_CHANGED); // Change this to scene reload.
 }
コード例 #2
0
    private void LoadLocale(LOCALE locale)
    {
        switch (locale)
        {
        case LOCALE.EN: LocalizedDictionary = GetLocaleDictFromFile("EN"); break;

        default: LocalizedDictionary = GetLocaleDictFromFile("EN"); break;
        }
    }