mirror of
https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
synced 2025-06-10 22:20:40 +02:00
feat: save the stats in a separated json (#38)
This commit is contained in:
15
Assets/Scripts/LevelStat.cs
Normal file
15
Assets/Scripts/LevelStat.cs
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user