// Do the mapping of the music level void Awake() { TextAsset jsonTextfile = Resources.Load <TextAsset>(musicData.musicDataPath); MapsInfo mapReading = new MapsInfo(); mapReading.InitLevelData(jsonTextfile.text); songMapping = mapReading.GetSongMapping(); }
// Do the mapping of the music level void Awake() { Debug.Log("freebtp :" + musicData.musicDataPath + ".json"); string content = File.ReadAllText(musicData.musicDataPath + ".json"); MapsInfo mapReading = new MapsInfo(); mapReading.InitLevelData(content); songMapping = mapReading.GetSongMapping(); }