private void TimedOnScenarioLoaded() { _scenarioState = ScenarioState.ShootToStart; session.SetScoreSystem(NagaUtils.FindObjectOfType <IScoreSystem>()); SetupCountdownLogic(); statUI.SetTimeDP(0); statUI.SetTimerMode(); statUI.UpdateTime(session.timeAllowed * 1000); SetupCountdownUI(); scenarioTimer.onEndTimer.AddListener(OnTimedScenarioEnded); shootToStartCoroutine = Timing.RunCoroutine(_WaitToStart(() => { scenarioTimer.StartTimer(session.timeAllowed, countdownTime); _scenarioState = ScenarioState.Countdown; })); }
private void UpdateTimeText(long milliseconds) { statUI.UpdateTime(milliseconds); }