示例#1
0
    public static void ReloadMaster()
    {
        DirectoryInfo directoryInfo = new DirectoryInfo(Application.persistentDataPath);

        foreach (FileInfo fileInfo in directoryInfo.GetFiles())
        {
            string name = fileInfo.Name;
            if (name.StartsWith("MA_"))
            {
                File.Delete(Application.persistentDataPath + "/" + name);
            }
        }
        MasterDataMng.Instance().ClearCache();
        MissionBannerCacheBuffer.ClearCacheBuffer();
        MonsterIconCacheBuffer.ClearCacheBuffer();
        PresentBoxItemIconCacheBuffer.ClearCacheBuffer();
        TitleIconCacheBuffer.ClearCacheBuffer();
        StringMaster.Reload();
        AlertMaster.Reload();
    }