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