示例#1
0
    void InitConfig()
    {
        //try
        //{
        //    m_strURL = GlobalConfig.Instance().httpSmallPackagerul;
        //}
        //catch(Exception e)
        //{
        //    return;
        //}

        KLoadConfigFileHelp.LoadConfigFile(GlobalConst.MainConfigFile, ref m_strURL);
        if (m_strURL == string.Empty)
        {
            return;
        }


        string strFileName = System.IO.Path.GetFileName(m_strURL);

        if (UnityEngine.Application.platform == UnityEngine.RuntimePlatform.Android)
        {
            m_strSaveFile = GlobalConst.localFilePath + "assets/" + strFileName;
        }
        else if (UnityEngine.Application.platform == UnityEngine.RuntimePlatform.IPhonePlayer)
        {
            m_strSaveFile = GlobalConst.localFilePath + strFileName;
        }
        else
        {
            m_strSaveFile = "c://map.zip";
        }
    }
示例#2
0
 void InitPackageConfig()
 {
     //KLoadConfigFileHelp.LoadConfigFile
     KLoadConfigFileHelp.LoadPackageConfigFile(GlobalConst.PackageConfigFile, ref m_bSmallPackage);
 }