微调
This commit is contained in:
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));
|
||||
|
||||
@@ -450,6 +450,7 @@ public class BigMapController : PFUIPanel
|
||||
|
||||
var position = line.BeginMarker.transform.position;
|
||||
//position.z += 25;
|
||||
position = DefaultPosition();
|
||||
tips.Show(position, line.Model);
|
||||
|
||||
foreach (var item in linesCache)
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
public void Set(DateTime startTime, DateTime now,string title, string sceneName, int competitionId,int routeId)
|
||||
{
|
||||
ticks = (int)(startTime - now).TotalSeconds;
|
||||
var content = $"Your <color='#F93086'>{title}</color> race about to start";
|
||||
var content = $"Your <color='#F93086'>{Helper.SubStr(title,10)}</color> race about to start";
|
||||
Content.text = content;
|
||||
CompetitionId = competitionId;
|
||||
RouteId = routeId;
|
||||
|
||||
@@ -177,6 +177,11 @@ namespace Assets.Scripts
|
||||
newLoading.GetComponent<RectTransform>().position = new Vector3(Screen.width / 2, Screen.height / 2, 0);
|
||||
newLoading.transform.SetParent(game.transform);
|
||||
loading = newLoading.transform;
|
||||
#if UNITY_IOS || UNITY_ANDROID
|
||||
loading.localScale = new Vector3(2, 2, 2);
|
||||
#else
|
||||
loading.localScale = new Vector3(1, 1, 1);
|
||||
#endif
|
||||
}
|
||||
loading.GetComponent<LoadingPf>().Show();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user