public void UpdateLDB(int level) { _ArraylistLeaderBoard = _LDBManager.ReadScoreTxt(level); UpdateLine(first, 1); UpdateLine(second, 2); UpdateLine(third, 3); UpdateLine(fourth, 4); UpdateLine(fifth, 5); UpdateLine(sixth, 6); }
// Start is called before the first frame update void Start() { timerRace.text = "00:00:00"; timerLaps.text = "1 : 00:00:00"; bestLapTime = 99999999; lapTimerAL = new ArrayList(); if (finishLine.raceMode == FinishLine.FinishType.Tour) { lapTimerAL.Add(finishLine.actualLap + " : " + GetTimeLap()); lapCount.text = finishLine.actualLap + "/" + finishLine.lapAmount; } _LBManager.ReadScoreTxt(6); }
void Start() { first = this.transform.Find("1st").gameObject; second = this.transform.Find("2nd").gameObject; third = this.transform.Find("3rd").gameObject; fourth = this.transform.Find("4th").gameObject; fifth = this.transform.Find("5th").gameObject; sixth = this.transform.Find("6th").gameObject; _ArraylistLeaderBoard = _LDBManager.ReadScoreTxt(gameManager.actualLevel); UpdateLine(first, 1); UpdateLine(second, 2); UpdateLine(third, 3); UpdateLine(fourth, 4); UpdateLine(fifth, 5); UpdateLine(sixth, 6); }