AR视频direction文件相关调整

This commit is contained in:
lishuo committed 2022-05-25 18:40:47 +08:00
1 parent d876c20def
commit 17c2a44e40
62 files changed
+120845 -42066

No files matched your search

@@ -8,6 +8,7 @@ using System;
using ChartAndGraph;
using DG.Tweening;
using System.Collections;
using Assets.Scenes.Ride.Scripts.Model.CyclingModels;
namespace Assets.Scenes.Ride.Scripts
{
@@ -61,7 +62,7 @@ namespace Assets.Scenes.Ride.Scripts
weight = App.CurrentUser.Weight;
bicycleWeight = App.CurrentUser.BicycleWeight;
//#if UNITY_EDITOR
power = 300;
power = 400;
//#endif
mainController.TrackResistance(currentSlope * App.RideSetting.Sensitivity / 100);
}
@@ -122,8 +123,25 @@ namespace Assets.Scenes.Ride.Scripts
mainController.SaveRealTime();
}
}
HandleForGameRoom();
}
protected override void BeforeRun()
private bool gameRoomHandled { get; set; }
private void HandleForGameRoom()
{
var model = mainController.cyclingController as GameModel;
if (model != null && model.FirstEndTime.HasValue && !gameRoomHandled)
{
gameRoomHandled = true;
var gap = model.FirstEndTime.Value - UIManager.Now.GetDateTime();
var seconds = Math.Floor(gap.TotalSeconds);
UIManager.ShowGameRoomCountDownPanel((int)seconds, () => {
Upload();
});
}
}
protected override void BeforeRun()
{
//if (mainController != null)
//{
@@ -157,7 +175,7 @@ namespace Assets.Scenes.Ride.Scripts
nextPosition.x -= 14f;
nextPosition.y += 5f;
//人物移动 停止条件 到中间且线未加载完
if ( GetStart() && chartDataSourceScript.ReachMid(viewIndex) && !chartDataSourceScript.ReachEnd())
if ( GetStart() && chartDataSourceScript.ReachMid(CurrentIndex) && !chartDataSourceScript.ReachEnd())
{
var currentDistance = CurrentDistance;
var distance = Distance;