赛事开始逻辑调整
This commit is contained in:
parent
eeffccd4e6
commit
917cbbfb90
@ -49,6 +49,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
altitudeGraph.gameObject.SetActive(false);
|
||||
//暂停按钮禁用
|
||||
pauseButton.interactable = false;
|
||||
InitGameObject();
|
||||
}
|
||||
protected override void Update()
|
||||
{
|
||||
@ -66,6 +67,11 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
GameObject watchPanel { get; set; }
|
||||
//开始骑行-加个5秒钟倒计时
|
||||
public override void StartRide()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void InitGameObject()
|
||||
{
|
||||
competitionModel = mainController.cyclingController as CompetitionModel;
|
||||
|
||||
|
||||
@ -23,13 +23,17 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
CountTimer = transform.Find("Timer").GetComponent<Text>();
|
||||
TimerTitle = transform.Find("ConpetitionTimerTitle").GetComponent<Text>();
|
||||
Timer = transform.Find("ConpetitionTimer").GetComponent<Text>();
|
||||
competitionModel = cyclingController.cyclingController as CompetitionModel;
|
||||
|
||||
|
||||
}
|
||||
GameObject competitionResultPanel { get; set; }
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (competitionModel == null)
|
||||
{
|
||||
competitionModel = cyclingController.cyclingController as CompetitionModel;
|
||||
}
|
||||
if (competitionModel != null)
|
||||
{
|
||||
var count = competitionModel.StartCountdown();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user