微调
This commit is contained in:
parent
b8ffdcbffe
commit
b9db3325a8
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user