public static void Reload() { AlertMaster.ClearCache(); File.Delete(Application.persistentDataPath + "/MA_DT_" + MasterId.MESSAGE_MASTER.ToString() + ".txt"); int num = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN)); AlertMaster.resourceMaster = Resources.Load <AlertMasterResource>("Master/message_m" + num); }
public static GameWebAPI.RespDataMA_MessageM.MessageM GetAlert(string errorCode) { GameWebAPI.RespDataMA_MessageM.MessageM result = null; GameWebAPI.RespDataMA_MessageM respDataMA_MessageM = MasterDataMng.Instance().RespDataMA_MessageM; if (respDataMA_MessageM != null) { if (!AlertMaster.GetAlertDownloadMaster(respDataMA_MessageM, errorCode, out result)) { bool alertResourceMaster = AlertMaster.GetAlertResourceMaster(errorCode, out result); } } else { bool alertResourceMaster = AlertMaster.GetAlertResourceMaster(errorCode, out result); } return(result); }