动态海拔图,全路线小地图,骑行记录上传增加截图

This commit is contained in:
lishuo committed 2021-04-07 17:22:45 +08:00
1 parent 65fc5b5c50
commit 725b510748
11 files changed
+4294 -4675

No files matched your search

@@ -35,9 +35,7 @@ namespace Assets.Scenes.Ride.Scripts
distance = mainController.UpdateDistance(speed);
totalDistance += distance;
//记录骑行数据
var recordText = string.Format($"{ ticks },{ power.ToString(CultureInfo.InvariantCulture) },{ speed.ToString(CultureInfo.InvariantCulture) },{ Math.Round(totalDistance, 6).ToString(CultureInfo.InvariantCulture) },{ cadance.ToString(CultureInfo.InvariantCulture) },{ heartRate.ToString(CultureInfo.InvariantCulture) },{ Math.Round(nextlatlong.x, 6).ToString(CultureInfo.InvariantCulture) },{ Math.Round(nextlatlong.y, 6).ToString(CultureInfo.InvariantCulture) }");
Debug.Log(recordText);
#if !UNITY_EDITOR
#if UNITY_EDITOR
var recorderData = cyclingExcutor.recorderData;
recorderData.RiderDatas.Add(new TargetData
{
@@ -51,14 +49,15 @@ namespace Assets.Scenes.Ride.Scripts
_Lon = nextlatlong.y
});
#endif
}
//上传数据
protected override void Upload()
}
//上传数据
protected override void Upload()
{
#if !UNITY_EDITOR
#if UNITY_EDITOR
string imageFileName = base.CaptureCamera(Camera.main, new Rect(Screen.width * 0f, Screen.height * 0f, Screen.width * 0.5f, Screen.height * 0.5f));
cyclingExcutor.recorderData.IsCompleted = totalDistance == mapData.TotalDistance;
cyclingExcutor.recorderData.EndDistance = totalDistance;
cyclingExcutor.recorderData.SaveData(cyclingExcutor.Mode,null,string.Empty);
cyclingExcutor.recorderData.SaveData(cyclingExcutor.Mode,null, imageFileName);
#endif
}
#endregion