c2课程同步

This commit is contained in:
lishuo committed 2022-06-30 14:39:13 +08:00
1 parent 46f7c2d4b1
commit 4d4f8feb8b
13 files changed
+125 -109

No files matched your search

@@ -246,6 +246,8 @@ public class RowerMultiModeScript : MonoBehaviour
StartCoroutine(Get(url, (res) =>
{
shadowList = res.data;
if (shadowList == null)
return;
var _tmpList = shadowList.Select(x => new TraceData
{
list = x.list,
@@ -27,7 +27,7 @@ public class RowerTaskPanel : PFUIPanel
}
}
Transform selector, distance, time;
public RowerType rowerType;
public RowerType rowerType { get; set; }
public Action<RowerType> callBack { get; set; }
@@ -155,7 +155,7 @@ public class RowerWelldone : PFUIPanel
var game = i == 0 ? Instantiate<GameObject>(AllRecord) : Instantiate<GameObject>(Record);
var content = i != 0 ? game.transform.Find("Content") : game.transform;
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("Time").GetComponent<Text>().text = i == 0 ? TimeSpan.FromSeconds(item.Ticks).ToString(@"hh\:mm\:ss\.ff"): TimeSpan.FromSeconds(item.Ticks).ToString(@"hh\:mm\:ss");
content.Find("Distance").GetComponent<Text>().text = item.Distance.ToString("#0");
content.Find("500").GetComponent<Text>().text = TimeSpan.FromSeconds(item.Speed).ToString().Substring(3, 5);
content.Find("Power").GetComponent<Text>().text = item.Power.ToString("#0");