微调
This commit is contained in:
1 parent
da4fed58b0
commit
b8a5982bc5
6 files changed
+7
-9
No files matched your search
@@ -196,12 +196,11 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
}
|
||||
}
|
||||
}
|
||||
if (totalDistance >= mapData.TotalDistance && !stopRecord)
|
||||
if (totalDistance > mapData.TotalDistance)
|
||||
{
|
||||
distance = totalDistance - mapData.TotalDistance;
|
||||
totalDistance = mapData.TotalDistance;
|
||||
stopRecord = true;
|
||||
mainController.cyclingController.recorderData.EndTime = UIManager.Now.GetDateTime();
|
||||
StartCoroutine("LateUpload");
|
||||
}
|
||||
|
||||
|
||||
@@ -650,7 +650,6 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
//}
|
||||
isStart = false;
|
||||
isQuit = true;
|
||||
cyclingController.recorderData.EndTime = UIManager.Now.GetDateTime();
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -677,7 +676,7 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
|
||||
public void Save(double totalDistance)
|
||||
{
|
||||
//cyclingController.recorderData.EndTime = UIManager.Now.GetDateTime();
|
||||
cyclingController.recorderData.EndTime = UIManager.Now.GetDateTime();
|
||||
isQuit = true;
|
||||
isStart = false;
|
||||
string recordId = Guid.NewGuid().ToString();
|
||||
@@ -688,7 +687,7 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
string imageFileName = path +"/"+ Guid.NewGuid().ToString() + ".png";
|
||||
CaptureCamera(Camera.main, new Rect(Screen.width * 0f, Screen.height * 0f, Screen.width * 0.5f, Screen.height * 0.5f), imageFileName);
|
||||
cyclingController.recorderData.StartTime = startTime;
|
||||
cyclingController.recorderData.IsCompleted = totalDistance == mapData.TotalDistance;
|
||||
cyclingController.recorderData.IsCompleted = totalDistance >= mapData.TotalDistance;
|
||||
cyclingController.recorderData.EndDistance = totalDistance;
|
||||
cyclingController.recorderData.AntModelId = AntModelId;
|
||||
cyclingController.recorderData.ManufacturerId = ManufacturerId;
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
weight = App.CurrentUser.Weight;
|
||||
bicycleWeight = App.CurrentUser.BicycleWeight;
|
||||
#if UNITY_EDITOR
|
||||
power = 2000;
|
||||
power = 50;
|
||||
#endif
|
||||
mainController.TrackResistance(currentSlope * App.RideSetting.Sensitivity / 100);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user