private void LoadTankConfigJson() { var task = new LoadTankConfigTask( PFileUtil.BuildPathFromUnix(cnf.TankFolder, cnf.TankConfigPath + ".json"), OnLoadTankConfigSuccess, OnLoadTankConfigFailure ); if (!task.Run()) { return; } st.LoadingInProcess++; }
private void LoadEnemyConfigJson(string path) { var task = new LoadEnemyConfigTask( PFileUtil.BuildPathFromUnix(cnf.EnemiesFolder, path + ".json"), result => OnLoadEnemyConfigSuccess(path, result), () => OnLoadEnemyConfigFailure(path) ); if (!task.Run()) { return; } st.LoadingInProcess++; }