路线产生逻辑微调
This commit is contained in:
1 parent
62938ec6ae
commit
92e43c2cd8
21 files changed
+3375
-1829
No files matched your search
@@ -31,9 +31,10 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
cadance = mainController.UpdateCadence();
|
||||
weight = App.CurrentUser.Weight;
|
||||
bicycleWeight = App.CurrentUser.BicycleWeight;
|
||||
|
||||
power = 2000;//测试功率
|
||||
|
||||
Debug.Log(power);
|
||||
//#if UNITY_EDITOR
|
||||
// power = 2000;//测试功率
|
||||
//#endif
|
||||
speed = Helper.CalculateSpeed(elevation, currentSlope, power, weight, bicycleWeight);
|
||||
distance = mainController.UpdateDistance(speed);
|
||||
totalDistance += distance;
|
||||
@@ -61,7 +62,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
//上传数据
|
||||
public override void Upload()
|
||||
{
|
||||
|
||||
mainController.isStart = false;
|
||||
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;
|
||||
|
||||
Reference in new issue
Block a user