-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/bugfix #72
Fix/bugfix #72
Conversation
Created a custom comparator and restructured how highscores are saved so they can be easily sorted.
Added ability to pause individual sources as well as lower the general volume of the AudioListener.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be compilation errors tied to loading and adding highscores on the leaderboard.
Also, regarding the changes to PauseManager:
This array:
public AudioSource[] audioSources;
and this functionality:
// Pause every audiosource in array. foreach(AudioSource a in audioSources) { if (IsPaused) a.Pause(); else a.UnPause(); } // Reduce the listener volume level AudioListener.volume = IsPaused ? 0.3f : 1f;
should be implemented in and derived from the audioManager singleton.
Changed "Endie"'s score to 10 so that no score on the leaderboard is 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tried running the code yet, but here's some feedback on the code itself 🤠
# Conflicts: # Assets/Scripts/GameState/GameOverScreen.cs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 🤩 (Still haven't tried the code yet, but since we're getting close to the deadline, any potential changes can be done later 🤠🤠)
Fixed the following:
Pause menu does not pause music
Saving a new highscore populates the leaderboard with only that score