骑行页面消息通知
在线用户和影子选手用图片显示,缩放等功能按钮微调
This commit is contained in:
1 parent
2b4b2c4f70
commit
8f0598580d
37 files changed
+5951
-3153
No files matched your search
@@ -22,13 +22,14 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
}
|
||||
private double temp = 0;
|
||||
private int index = -1;
|
||||
public void AnimateNum(float newScore,double totalDistance,int currentIndex, int digit, string format)
|
||||
public void AnimateNum(float newScore,double totalDistance,int currentIndex, int digit, string format,Image process)
|
||||
{
|
||||
if (currentIndex != index)
|
||||
{
|
||||
text.text = string.Format(format, totalDistance);
|
||||
index = currentIndex;
|
||||
mOldScore = (float)totalDistance;
|
||||
mOldScore = 0;
|
||||
process.fillAmount = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -37,6 +38,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
//if (value != newScore)
|
||||
{
|
||||
temp = Math.Round(value, digit);
|
||||
process.fillAmount = ((float)temp / (float)totalDistance);
|
||||
//向Text组件赋值
|
||||
text.text = string.Format(format, temp);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user