- Home /
This question was
closed Nov 27, 2021 at 05:37 PM by
PapoTheSnek.
Question by
PapoTheSnek · Nov 27, 2021 at 04:47 PM ·
loadingsaving
Level manager. save and load different time for each level.
Hello there. How can I save/load timer for each level and then pass that to my level manager for loop?. rn now it display on all of them. check image.
only level 1 should have 2,8sec.
obrazek-2021-11-27-174552.png
(335.3 kB)
Comment
How is the timer supposed to function? Is it a global timer that aggregates the time spent in each level or is it level specific?
Best Answer
Answer by MilitaryG · Nov 27, 2021 at 05:20 PM
What you need is an array
public float [] highScores = new float [howManyLvls];
button.timeText = highScore[i];
Thats about it what you need hope you understand it
Also those times needs to be valued