登录增加loading&赛事提醒修改
This commit is contained in:
1 parent
51cea743be
commit
dfb80658dd
23 files changed
+2137
-34355
No files matched your search
@@ -30,6 +30,8 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
private GameObject CancelJoin { get; set; }
|
||||
private GameObject ReadMore { get; set; }
|
||||
|
||||
CompetitionUIManager competitionUI { get; set; }
|
||||
|
||||
public override void InjectController(CyclingController controller)
|
||||
{
|
||||
cyclingController = controller;
|
||||
@@ -45,7 +47,6 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
CompetitionDesc = panel.transform.Find("CompetitionDesc").GetComponent<RawImage>();
|
||||
SponsorLogoImage = panel.transform.Find("SponsorTitle/Sponsor").GetComponent<RawImage>();
|
||||
cyclingController.SetUIManager(mainPanel, modelPanel);
|
||||
|
||||
}
|
||||
protected override void Start()
|
||||
{
|
||||
@@ -259,6 +260,8 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
Utils.showToast(gameObject, "race close");
|
||||
return;
|
||||
}
|
||||
competitionUI = cyclingController.singleUIManager as CompetitionUIManager;
|
||||
competitionUI?.SetMobileViewButton(false);
|
||||
base.StartRide(baseEvent);
|
||||
}
|
||||
//观察
|
||||
|
||||
@@ -18,16 +18,18 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
Text title { get; set; }
|
||||
Text timer { get; set; }
|
||||
GameObject raceViewBtn { get; set; }
|
||||
GameObject timerIcon { get; set; }
|
||||
protected override void Start()
|
||||
{
|
||||
base.Start();
|
||||
|
||||
reviewPanel.SetActive(false);
|
||||
//隐藏单人骑行时间
|
||||
var spilitLineH2 = uipanel.transform.Find("ComputerPanel/SpilitLineH2").gameObject;
|
||||
raceViewBtn = uipanel.transform.Find("RaceViewButton").gameObject;
|
||||
#if UNITY_IOS || UNITY_ANDROID
|
||||
viewButton.enabled = mainController.isWatch;
|
||||
viewButton.interactable = mainController.isWatch;
|
||||
timerIcon = uipanel.transform.Find("ComputerPanel/TimerIcon").gameObject;
|
||||
timerIcon.SetActive(false);
|
||||
#else
|
||||
viewButton.gameObject.SetActive(false);
|
||||
#endif
|
||||
@@ -202,6 +204,14 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
}
|
||||
}
|
||||
|
||||
public void SetMobileViewButton(bool enabled)
|
||||
{
|
||||
#if UNITY_IOS || UNITY_ANDROID
|
||||
//viewButton.enabled = enabled;
|
||||
viewButton.interactable = enabled;
|
||||
#endif
|
||||
}
|
||||
|
||||
protected override void StopRide(BaseEventData baseEventData)
|
||||
{
|
||||
if (!App.MainSceneParam.ContainsKey("Name"))
|
||||
|
||||
Reference in new issue
Block a user