IEnumerator Start() { TimeManager.OnSetTime(totalTimeInSecs, isTimed, gameMode); TimeDisplay.OnSetLaps(lapsToComplete); yield return(new WaitForEndOfFrame()); Register(); }
IEnumerator Start() { totalTimeInSecs = configuration.timeLap; isTimed = configuration.isTimed; lapsToComplete = configuration.laps; TimeManager.OnSetTime(totalTimeInSecs, isTimed, gameMode); TimeDisplay.OnSetLaps(lapsToComplete); yield return(new WaitForEndOfFrame()); Register(); }