4.29计算逻辑修改
This commit is contained in:
1 parent
3c4ecf3e83
commit
cfa1cc4f7b
7 files changed
+45
-25
No files matched your search
@@ -50,12 +50,12 @@ public class RowerAnimation : PFUIPanel
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
image.sprite = sprites[i];
|
||||
yield return new WaitForSeconds(0.02f);
|
||||
yield return new WaitForSeconds(0.02666f);
|
||||
}
|
||||
for (int i = 15; i < 30; i++)
|
||||
{
|
||||
image.sprite = sprites[i];
|
||||
yield return new WaitForSeconds(0.04f);
|
||||
yield return new WaitForSeconds(0.05333f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -443,7 +443,7 @@ public class RowerMultiModeScript : MonoBehaviour
|
||||
var rowed = t.Find("Main/Rowed").GetComponent<RectTransform>();
|
||||
rowed.sizeDelta = new Vector2(diffWidth < 0 ? 0 : t.Find("Main").GetComponent<RectTransform>().sizeDelta.x, rowed.sizeDelta.y);
|
||||
}
|
||||
if (isAni && currentSecond >= 0 && currentSecond < data.list.Count)
|
||||
if (isAni && currentSecond >= 0 && currentSecond < data.list.Count && currentSecond%2 == 0)
|
||||
{
|
||||
var ani = DOTween.Sequence();
|
||||
var _d = data.list[currentSecond];
|
||||
@@ -452,11 +452,11 @@ public class RowerMultiModeScript : MonoBehaviour
|
||||
var spDict = GetComponent<RowerHomeScript>().spriteDict2;
|
||||
int spDictIndex = 0;
|
||||
|
||||
ani.Join(DOTween.To(() => spDictIndex, x => t.Find("Main/Boat/Image").GetComponent<Image>().sprite = spDict[x], 14, 0.225f));
|
||||
ani.Join(DOTween.To(() => spDictIndex, x => t.Find("Main/Boat/Image").GetComponent<Image>().sprite = spDict[x], 14, 0.495f));
|
||||
ani.AppendCallback(() =>
|
||||
{
|
||||
int spDictIndex2 = 14;
|
||||
DOTween.To(() => spDictIndex2, x => t.Find("Main/Boat/Image").GetComponent<Image>().sprite = spDict[x], 0, 0.675f);
|
||||
DOTween.To(() => spDictIndex2, x => t.Find("Main/Boat/Image").GetComponent<Image>().sprite = spDict[x], 0, 1.485f);
|
||||
});
|
||||
ani.Play();
|
||||
//var _pred = data.list[currentSecond - 1];
|
||||
|
||||
@@ -146,7 +146,7 @@ public class RowerWelldone : PFUIPanel
|
||||
content.Find("Index").GetComponent<Text>().text = i == 0 ? "ALL" : i.ToString("00");
|
||||
content.Find("Time").GetComponent<Text>().text = TimeSpan.FromSeconds(item.Ticks).ToString();
|
||||
content.Find("Distance").GetComponent<Text>().text = item.Distance.ToString("#0");
|
||||
content.Find("500").GetComponent<Text>().text = TimeSpan.FromSeconds(item.Speed).ToString();
|
||||
content.Find("500").GetComponent<Text>().text = TimeSpan.FromSeconds(item.Speed).ToString().Substring(3, 5);
|
||||
content.Find("Power").GetComponent<Text>().text = item.Power.ToString("#0");
|
||||
content.Find("HR").GetComponent<Text>().text = item.HeartRate.ToString("#0");
|
||||
content.Find("Count").GetComponent<Text>().text = item.StrokeCount.ToString("#0");
|
||||
|
||||
Reference in new issue
Block a user