mirror of
				https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
				synced 2025-06-27 11:58:51 +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);
 | |
|     }
 | |
| }
 |