Files
PGiZ4/Assets/Code/Saves/GameData.cs
T
2026-03-08 21:56:20 +03:00

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>();
}
}