33 lines
746 B
C#
33 lines
746 B
C#
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 List<LeaderboardEntry> leaderboard = new List<LeaderboardEntry>();
|
|
}
|
|
} |