feat: save the stats in a separated json (#38)

This commit is contained in:
2025-03-03 09:33:58 +01:00
committed by GitHub
parent 827c867052
commit ce92ba53cc
9 changed files with 66 additions and 10 deletions

View File

@ -0,0 +1,15 @@
using UnityEngine;
[System.Serializable]
public class LevelStat
{
public string JsonName { get; set; }
public int totalJumps;
public int totalAttempts;
public static LevelStat CreateFromJSON(string jsonString)
{
return JsonUtility.FromJson<LevelStat>(jsonString);
}
}