This commit is contained in:
lishuo committed 2021-09-16 15:59:08 +08:00
1 parent d7486c920c
commit bd8089d0a9
7 files changed
+176 -22

No files matched your search

@@ -492,7 +492,10 @@ namespace Assets.Scenes.Ride.Scripts
//切换视角
public void ChangeView(BaseEventData baseEventData)
{
mainController.ChangeMapImageStyle(arrow.gameObject);
if (viewButton.interactable)
{
mainController.ChangeMapImageStyle(arrow.gameObject);
}
}
//结束游戏
protected virtual void StopRide(BaseEventData baseEventData)
@@ -493,10 +493,13 @@ public class CyclingController : DeviceServiceMonoBase
onlinePlayerController.SetDataSource(onlineTotalDistance, onlineDistance, onlineRider.Power, onlineRider.HeartRate, onlineRider.Cadence, onlineRider.TotalTicks, onlineRider.NickName, onlineRider.WeightKg, new Vector2d(onlineRider.Point.Latitude, onlineRider.Point.Longitude),index);
onlinePlayerController.SetHead(onlineRider.WxHeadImg);
//小地图人物
GameObject miniPlayer = (GameObject)Instantiate(miniMapPlayerPrefab, transform);
var miniController = miniPlayer.GetComponent<MiniMapPlayerController>();
miniController.SetController(onlinePlayerController);
if (competitionId == 0)
{
//小地图人物
GameObject miniPlayer = (GameObject)Instantiate(miniMapPlayerPrefab, transform);
var miniController = miniPlayer.GetComponent<MiniMapPlayerController>();
miniController.SetController(onlinePlayerController);
}
//发消息xx进入路书
if(messageIndex > 0)
EventQueueSystem.QueueEvent(new JoinMessageEvent(onlineRider.NickName, onlineRider.WxHeadImg));