骑行界面UI
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user