feat: json loader (#37)

This commit is contained in:
2025-02-17 12:27:09 +01:00
committed by GitHub
parent 51404e5cc6
commit 827c867052
89 changed files with 1143 additions and 888 deletions

18
Assets/Scripts/Level.cs Normal file
View File

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