微调
This commit is contained in:
parent
62e88668e0
commit
edf0313155
@ -27,7 +27,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
#if UNITY_IOS || UNITY_ANDROID
|
||||
pageSize = 7;
|
||||
#else
|
||||
pageSize = 4;
|
||||
pageSize = 5;
|
||||
#endif
|
||||
scroll = transform.Find("List").gameObject;
|
||||
if (scroll != null)
|
||||
|
||||
@ -94,6 +94,8 @@ namespace Assets.Scenes.Ride.Scripts.Model.CyclingModels
|
||||
{
|
||||
try
|
||||
{
|
||||
if (recorderData.Saved)
|
||||
return;
|
||||
if (recorderData.RiderDatas.Any())
|
||||
{
|
||||
var lastData = recorderData.RiderDatas.Last();
|
||||
|
||||
@ -186,6 +186,8 @@ namespace Assets.Scenes.Ride.Scripts.Model.CyclingModels
|
||||
if (needUpdate != null)
|
||||
{
|
||||
needUpdate.CreateTime = ranking.CreateTime.ToLocalTime();
|
||||
needUpdate.Index = ranking.Index;
|
||||
needUpdate.IsCompleted = true;
|
||||
}
|
||||
|
||||
var createTime = "";
|
||||
|
||||
@ -457,6 +457,10 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
if (cyclingController != null)
|
||||
{
|
||||
//tcp数据传输
|
||||
if (competition != null && !cyclingController.recorderData.Saved)
|
||||
{
|
||||
cyclingController.recorderData.Saved = competition.HasRecord;
|
||||
}
|
||||
cyclingController.Run(null);
|
||||
//在线人物或比赛人物渲染
|
||||
ShowOnlineUsers();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user