Example #1
0
    public void LoadLocalize()
    {
        LocalizeCollection rewardData = LoadResourceController.GetLocalizeCollection();
        var _data = CSVReader.Read(LoadResourceController.LoadFromResource <TextAsset>(CsvPath.CSV_PATH, CsvPath.FN_LOCALIZE));

        rewardData.ParseData(_data);
    }
Example #2
0
 public static string LocalizeWithKey(string key)
 {
     if (localizeCollection == null)
     {
         localizeCollection = LoadResourceController.GetLocalizeCollection();
     }
     if (dic == null)
     {
         dic = localizeCollection.GetData();
     }
     return(GetKey(key));
 }