mirror of
https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
synced 2025-04-17 18:56:18 +02:00
16 lines
347 B
C#
16 lines
347 B
C#
using System.IO;
|
|
using UnityEngine;
|
|
|
|
public class LevelsLoader : MonoBehaviour
|
|
{
|
|
public Level level;
|
|
|
|
public void Start()
|
|
{
|
|
DontDestroyOnLoad(gameObject);
|
|
|
|
TextAsset jsonTextFile = Resources.Load<TextAsset>(Path.Combine("Levels", "BackOnTrack"));
|
|
level = JsonUtility.FromJson<Level>(jsonTextFile.text);
|
|
}
|
|
}
|