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 void Initialize() { if (AlertMaster.alertCache == null) { AlertMaster.alertCache = new Dictionary <string, GameWebAPI.RespDataMA_MessageM.MessageM>(); } if (null == AlertMaster.resourceMaster) { int num = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN)); string path = "Master/message_m" + num; AlertMaster.resourceMaster = Resources.Load <AlertMasterResource>(path); } }