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

View File

@ -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);

View File

@ -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;
}