android端发布前微调
This commit is contained in:
1 parent
d38330d969
commit
bd9696cd81
34 files changed
+859
-934
No files matched your search
@@ -309,25 +309,25 @@ public class MainController : BaseScene
|
||||
//{
|
||||
// UIManager.ShowHomePanel();
|
||||
//});
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
//#if UNITY_ANDROID || UNITY_IOS
|
||||
|
||||
#region 划船机功能:隐藏骑行
|
||||
UIManager.ShowRowerPanel();
|
||||
return;
|
||||
#endregion
|
||||
if (!App.IsRowerMode.HasValue)
|
||||
{
|
||||
UIManager.ShowHomePanel();
|
||||
UIManager.ShowRowerSelector();
|
||||
return;
|
||||
}
|
||||
if (App.IsRowerMode == true)
|
||||
{
|
||||
UIManager.ShowHomePanel();
|
||||
UIManager.ShowRowerPanel();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
// #region 划船机功能:隐藏骑行
|
||||
// UIManager.ShowRowerPanel();
|
||||
// return;
|
||||
// #endregion
|
||||
// if (!App.IsRowerMode.HasValue)
|
||||
// {
|
||||
// UIManager.ShowHomePanel();
|
||||
// UIManager.ShowRowerSelector();
|
||||
// return;
|
||||
// }
|
||||
// if (App.IsRowerMode == true)
|
||||
// {
|
||||
// UIManager.ShowHomePanel();
|
||||
// UIManager.ShowRowerPanel();
|
||||
// return;
|
||||
// }
|
||||
//#endif
|
||||
LastRide();//检查本地异常中断的骑行并弹窗提示继续
|
||||
if (App.MainSceneParam.ContainsKey("Name") && !string.IsNullOrEmpty(App.MainSceneParam["Name"]))
|
||||
{
|
||||
|
||||
@@ -291,6 +291,9 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
//计算当前海拔和坡度&当前区间距离
|
||||
elevation = pointList[CurrentIndex].Elevation;
|
||||
currentSlope = pointList[CurrentIndex].Grade;
|
||||
//格式化坡度最大不能超过15,-15
|
||||
PreSlope = PreSlope > 0 ?Math.Min(PreSlope, 15) : Math.Max(PreSlope, -15);
|
||||
currentSlope = currentSlope > 0? Math.Min(PreSlope, 15) : Math.Max(PreSlope, -15);
|
||||
CurrentDistance = pointList[CurrentIndex].Distance;
|
||||
//计算下一个海拔和坡度&当前区间距离
|
||||
nextSlope = pointList[nextIndex].Grade;
|
||||
|
||||
@@ -148,22 +148,12 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
DrawMapRouteAsync(route.Id);
|
||||
AddProcess(10);
|
||||
//查询排行榜
|
||||
var list = mapApi.GetRouteRanking(route.Id, "1", 0, 10000, "");
|
||||
var list = mapApi.GetRouteRanking(route.Id, "1", 0, 8, "");
|
||||
if (list.result)
|
||||
{
|
||||
//if (list.data.list.Count > RankingPageSize)
|
||||
//{
|
||||
// var ViewAll = panel.transform.Find("ViewAll").gameObject;
|
||||
// ViewAll.SetActive(true);
|
||||
// UIManager.AddEvent(ViewAll, UnityEngine.EventSystems.EventTriggerType.PointerClick, b =>
|
||||
// {
|
||||
// Application.OpenURL($"{App.CurrentUser.WebHost}Routes/{cyclingController.mapRoute.Id}?Token={App.CurrentUser.cookie}");
|
||||
// });
|
||||
//}
|
||||
CreateRankingList(list.data.list);
|
||||
AddProcess(10);
|
||||
}
|
||||
//StartCoroutine(HiddenLoading());
|
||||
}
|
||||
|
||||
//创建排行榜
|
||||
|
||||
@@ -335,7 +335,7 @@ namespace Assets.Scripts.Scenes.VideoRide
|
||||
}
|
||||
}
|
||||
//显示人物海拔图的头像
|
||||
public void CreateHeadImage()
|
||||
protected virtual void CreateHeadImage()
|
||||
{
|
||||
if (head == null)
|
||||
{
|
||||
|
||||
@@ -96,6 +96,12 @@ namespace Assets.Scripts.Scenes.VideoRide
|
||||
{
|
||||
base.ComputeVideo();
|
||||
}
|
||||
protected override void CreateHeadImage()
|
||||
{
|
||||
base.CreateHeadImage();
|
||||
if (diff < 0)
|
||||
((RectTransform)head.transform).anchoredPosition = new Vector2(((RectTransform)head.transform).anchoredPosition.x, -800f);
|
||||
}
|
||||
|
||||
//设置当前玩家属性
|
||||
public void SetPlayer(string name, double distance, double totalDistance, double cadance,double heartRate, double wkg, int userId,double power,double currentPlayerDistance,int frame)
|
||||
|
||||
@@ -128,7 +128,7 @@ namespace Assets.Scripts.Scenes.VideoRide
|
||||
recorderData.PreDistance = Math.Round(preDistance, 6, MidpointRounding.AwayFromZero);
|
||||
recorderData.EndDistance = Math.Round(targetData._Distance, 6, MidpointRounding.AwayFromZero);
|
||||
recorderData.RiderDatas.Add(targetData);
|
||||
|
||||
//默认启用多圈
|
||||
//if (totalDistance >= mapData.TotalDistance)
|
||||
//{
|
||||
// start = false;
|
||||
|
||||
Reference in new issue
Block a user