added leaderboard

This commit is contained in:
MrTorex committed 2026-03-08 21:56:20 +03:00
1 parent 51b5659f4a
commit 8a9fe611e0
9 files changed
+1606 -25

No files matched your search

+16 -2
View File
@@ -1,19 +1,33 @@
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Code.Saves
{
[Serializable]
public class LeaderboardEntry
{
public string playerName;
public int score;
public LeaderboardEntry(string name, int score)
{
playerName = name;
this.score = score;
}
}
[Serializable]
public class GameData
{
public int bodyMaterialIndex;
public int faceMaterialIndex;
public int hatIndex;
public Color platformColor = Color.white;
public Color bonusColor = Color.white;
public string playerName = "Player";
public int highScore;
public List<LeaderboardEntry> leaderboard = new List<LeaderboardEntry>();
}
}