骑行界面UI

This commit is contained in:
lishuo committed 2021-03-30 17:29:40 +08:00
1 parent 8ad36c965d
commit d5133ee7b0
66 files changed
+70766 -159

No files matched your search

@@ -131,7 +131,7 @@ namespace Assets.Scenes.Ride.Scripts
speed = Helper.CalculateSpeed(elevation, 0, power, 65, 7);
distance = Math.Round(speed / 3600, 6);
totalDistance += distance;
//characterAnimator.SetBool("IsRide", false);//初始化动画状态
characterAnimator.SetBool("IsRide", false);//初始化动画状态
if (totalDistance <= mapData.TotalDistance)
{
//数据处理
@@ -156,11 +156,12 @@ namespace Assets.Scenes.Ride.Scripts
else
{
//TODO保存骑行数据
characterAnimator.SetBool("ReachEnd", true);
}
}
else
{
//characterAnimator.SetBool("IsRide", false);
characterAnimator.SetBool("IsRide", false);
}
}