您当前的位置: 首页 > 

苍狼王unity学院

暂无认证

  • 1浏览

    0关注

    305博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

利用命令行启动更新程序

苍狼王unity学院 发布时间:2019-12-09 09:58:12 ,浏览量:1

1、看代码逻辑

/// /// 命令行 /// private void ParseCommandLine() { string[] CommandLineArgs = Environment.GetCommandLineArgs();

#if !UNITY_EDITOR foreach ( var item in CommandLineArgs ) { if ( item == “–import” ) { ImportSinglePlayerData(); } } #elif DATA_BASE_MERGE ImportSinglePlayerData(); #endif }

private void ImportSinglePlayerData() {

        string backupPath = Application.dataPath.Substring( 0, Application.dataPath.LastIndexOf( '/' ) ) + "/data_for_update/";
        string tgtFilePath = Application.dataPath+ "/StreamingAssets/Upload/DrillMissionRecord";
        string srcFilePath = backupPath+ "DrillMissionRecord";
    }
关注
打赏
1665389160
查看更多评论
立即登录/注册

微信扫码登录

0.0381s