leaderboard feature added

This commit is contained in:
Mausham
2025-12-17 22:16:41 +05:45
parent df4017f6be
commit f19bbb9d8c
25 changed files with 106 additions and 170 deletions

View File

@@ -9,7 +9,6 @@ namespace Darkmatter.Presentation
{
public GameObject leaderBoardScreen;
public Button ExitButton;
public Transform LBDataContainer;
public LeaderBoardData LBplayerData;
public void Show()
@@ -17,14 +16,6 @@ namespace Darkmatter.Presentation
leaderBoardScreen.SetActive(true);
}
public void UpdateData(int rank,string name, string score)
{
LeaderBoardData data = Instantiate(LBplayerData, LBDataContainer);
data.playerPos.text = rank.ToString();
data.playerName.text = name;
data.playerScore.text = score;
}
public void Hide()
{
leaderBoardScreen.SetActive(false);