Skip to content

Commit

Permalink
Merge branch 'UpdatedLeaderboardLogic' of https://github.com/Gamify-I…
Browse files Browse the repository at this point in the history
…T/overworld into UpdatedLeaderboardLogic
  • Loading branch information
Fa8Bit committed Nov 19, 2024
2 parents 25823d9 + 1b3bfb9 commit d4244c6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Assets/Scripts/HUD/Leaderboard/LeaderboardManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,10 @@ public class LeaderboardManager : MonoBehaviour
/// This method is called when the script is first run.
/// Sets up data, audio, UI listeners, and the initial state of the UI.
/// </summary>
private async void Start()
private void Start()
{
FetchAndInitializePlayerData();
InitializeAudioSource();
SetupUIListeners();
Setup();
UpdateUI();

}

private async Task FetchAndInitializePlayerData()
Expand All @@ -73,6 +70,11 @@ private async Task FetchAndInitializePlayerData()
InitializeData();

UpdateUI();

InitializeAudioSource();
SetupUIListeners();
Setup();
UpdateUI();
}

/// <summary>
Expand Down

0 comments on commit d4244c6

Please sign in to comment.