This commit is contained in:
lishuo committed 2021-07-29 09:26:19 +08:00
1 parent b8ffdcbffe
commit b9db3325a8
2 files changed
+4 -3

No files matched your search

@@ -44,8 +44,6 @@ namespace Assets.Scenes.Ride.Scripts
protected override void Start()
{
base.Start();
Watch.GetComponent<Button>().enabled = false;
Watch.GetComponent<Button>().interactable = false;
}
MapCompetition competition { get; set; }
protected override void Update()
@@ -128,6 +126,9 @@ namespace Assets.Scenes.Ride.Scripts
GetReady = panel.transform.Find("GetReady").GetComponent<Text>();
GetReadyTitle = panel.transform.Find("GetReadyTitle").GetComponent<Text>();
Watch.GetComponent<Button>().enabled = false;
Watch.GetComponent<Button>().interactable = false;
UIManager.AddEvent(ReadMore, EventTriggerType.PointerClick, ReadCompetitionPreview);
UIManager.AddEvent(Watch, EventTriggerType.PointerClick, StartWatch);
UIManager.AddEvent(Apply, EventTriggerType.PointerClick, ApplyRace);
@@ -299,7 +299,7 @@ namespace Assets.Scenes.Ride.Scripts
else
{
//如果是参赛选手默认进入3d视角
if (mainController.cyclingModel == Model.CyclingModel.Competition && !mainController.isWatch)
if (mainController.cyclingModel == Model.CyclingModel.Competition && !mainController.competition.CanWatch)
{
return;
}