public SamLines LoadJSONLines() { using (StreamReader stream = new StreamReader(linesPath)) { string json = stream.ReadToEnd(); linesFromJSON = JsonUtility.FromJson <SamLines>(json); } return(linesFromJSON); }
public SamLinesManager(AudioSource audioSource, string language) { this.audioSource = audioSource; this.language = language; samLinesJson = new SamLinesJson(this.language); samLines = samLinesJson.LoadJSONLines(); soundManager = new SoundManager(audioSource, "Sam/SamLines/" + this.language + "/"); pipe = new List <Line>(); }