赛事功能完善
创建比赛按钮;loading页面more按钮等
This commit is contained in:
1 parent
eed2d13624
commit
e76b5c443f
55 files changed
+7805
-3376
No files matched your search
@@ -63,7 +63,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
}
|
||||
}
|
||||
double diff = 0;
|
||||
public void SetDataSource(double _totalDistance, double _distance,string Name,double weightKg,Vector2d point,int index=0)
|
||||
public void SetDataSource(double _totalDistance, double _distance, double _power, double _heartRate, double _cadence,int _totalTicks, string Name,double weightKg,Vector2d point,int index=0)
|
||||
{
|
||||
totalDistance = _totalDistance;
|
||||
distance = _distance;
|
||||
@@ -73,6 +73,10 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
CurrentIndex = index;
|
||||
//Point = point;
|
||||
currentlatlong = point;
|
||||
heartRate = Convert.ToInt32( _heartRate);
|
||||
power = Convert.ToInt32(_power);
|
||||
cadance = _cadence;
|
||||
ticks = _totalTicks;
|
||||
}
|
||||
|
||||
public Vector2d Point { get; set; }
|
||||
@@ -281,7 +285,8 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Color transparent = new Color(0.1529412f, 0.8745098f, 0.8901961f, 0);
|
||||
Color blue = new Color(0.1529412f, 0.8745098f, 0.8901961f, 1);
|
||||
private void MoveGraghHead4Race()
|
||||
{
|
||||
MoveHead();
|
||||
@@ -289,12 +294,14 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
//如果切换到当前用户,当前用户头像变大,并且只显示当前用户
|
||||
if (mainController.currentPlayer.UserId == UserId)
|
||||
{
|
||||
headPanel.SetActive(true);
|
||||
head.gameObject.SetActive(true);
|
||||
headPanel.GetComponent<Image>().color = blue;
|
||||
rect.DOScale(new Vector3(1.5f, 1.5f, 1.5f), 0.5f);
|
||||
}
|
||||
else
|
||||
{
|
||||
headPanel.SetActive(false);
|
||||
head.gameObject.SetActive(false);
|
||||
headPanel.GetComponent<Image>().color = transparent;
|
||||
rect.DOScale(new Vector3(1f, 1f, 1f), 0.5f);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user