djelalb 7918d310b6
feat: start of Stereo Madness level (#42)
Co-authored-by: Djelal BOUDJI <djelal@gmail.com>
2025-03-04 08:54:58 +01:00

34 lines
706 B
C#

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
[System.Serializable]
public class LevelElement
{
public string type;
public float x;
public float y;
public float scaleX = -1;
public float scaleY = -1;
}
[System.Serializable]
public class Level
{
public string JsonName { get; set; }
public int TotalJumps { get; set; }
public int TotalAttempts { get; set; }
public string name;
public string musicName;
public int order;
public List<LevelElement> elements;
public static Level CreateFromJSON(string jsonString)
{
return JsonUtility.FromJson<Level>(jsonString);
}
}