コード例 #1
0
        public static void Reload()
        {
            StringMaster.ClearCache();
            File.Delete(Application.persistentDataPath + "/MA_DT_" + MasterId.MESSAGE_STRING_MASTER.ToString() + ".txt");
            int num = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN));

            StringMaster.resourceMaster = Resources.Load <StringMasterResource>("Master/message_string_m" + num);
        }
コード例 #2
0
 public static void Initialize()
 {
     if (StringMaster.stringCache == null)
     {
         StringMaster.stringCache = new Dictionary <string, string>();
     }
     if (null == StringMaster.resourceMaster)
     {
         int    num  = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN));
         string path = "Master/message_string_m" + num;
         StringMaster.resourceMaster = Resources.Load <StringMasterResource>(path);
     }
 }