void Start() { if (wrapper == null) { wrapper = this; } else if (wrapper != this) { Destroy(this); } LogSystem.InstallDefaultReactors(); Runnable.Run(SetUpTTS()); Runnable.Run(SetUpToneAnalyser()); Runnable.Run(SetUpSpeechToText()); Runnable.Run(SetUpAssistant()); associatedSource = GameObject.FindGameObjectWithTag("Avatar").GetComponent <AudioSource>(); associatedLogControl = GameObject.FindGameObjectWithTag("LogControl").GetComponent <TextLogControl>(); if (File.Exists(Application.persistentDataPath + "/voiceLines.eld")) { BinaryFormatter bf = new BinaryFormatter(); FileStream file = File.Open(Application.persistentDataPath + "/voiceLines.eld", FileMode.Open); voiceLines = (Dictionary <string, byte[]>)bf.Deserialize(file); file.Close(); } else { voiceLines = new Dictionary <string, byte[]>(); } }