海拔图小头像&比赛状态实时刷新
This commit is contained in:
1 parent
e29f0a8116
commit
ea717ccdb8
11 files changed
+435
-94
No files matched your search
@@ -53,9 +53,9 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
protected override void Compute()
|
||||
{
|
||||
currentlatlong = mainController.Along(totalDistance);//下一个坐标
|
||||
if (_playerController != null)
|
||||
if (mainController.currentPlayer != null)
|
||||
{
|
||||
diff = Math.Round((totalDistance - _playerController.TotalDistance) * 1000, 0);
|
||||
diff = Math.Round((totalDistance - mainController.currentPlayer.TotalDistance) * 1000, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -114,7 +114,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
infoName.text = nickName;
|
||||
//距离
|
||||
var infoDistance = infoPanel.transform.Find("Distance").GetComponent<Text>();
|
||||
if (_playerController != null)
|
||||
if (mainController.currentPlayer != null)
|
||||
{
|
||||
infoDistance.text = diff > 0? $"+{diff}M" : $"{diff}M";
|
||||
}
|
||||
@@ -281,7 +281,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
}
|
||||
if (head == null)
|
||||
{
|
||||
head = headPanel.GetComponentInChildren<RawImage>();
|
||||
head = headPanel.transform.Find("Head").GetComponent<RawImage>();
|
||||
if (!string.IsNullOrEmpty(headUrl))
|
||||
{
|
||||
Utils.DisplayImage(head, headUrl, true);
|
||||
|
||||
Reference in new issue
Block a user