Esempio n. 1
0
    public static GameConfig LoadGameConfig()
    {
        GameConfig gameCfg = (GameConfig)CUility.DeSerializerObjectFromAssert(cConfigPath, typeof(GameConfig));

        string gameCfgPath = Application.persistentDataPath + "/" + cConfigPath;

        if (System.IO.File.Exists(gameCfgPath))
        {
            gameCfg = (GameConfig)CUility.DeSerializerObject(gameCfgPath, typeof(GameConfig));
        }
        return(gameCfg);
    }
Esempio n. 2
0
    static void GenCompressAssetBundles()
    {
        m_lstOldFileMD5 = null;
        m_lstNewFileMD5 = null;
        string strMD5Cfg = m_strCompressDirectoryPath + "MD5Config.xml";

        if (File.Exists(strMD5Cfg))
        {
            m_lstOldFileMD5 = (List <MD5Info>)CUility.DeSerializerObject(strMD5Cfg, typeof(List <MD5Info>));
        }

        m_lstNewFileMD5 = new List <MD5Info>();

        IterFile(m_strBundleDirectoryPath, CompressAssetBundles);

        CUility.SerializerObject(strMD5Cfg, m_lstNewFileMD5);
    }