added leaderboard
This commit is contained in:
1 parent
51b5659f4a
commit
8a9fe611e0
9 files changed
+1606
-25
No files matched your search
@@ -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>();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user