// All kOS PartModules should actually share the single same instance of me: void Awake() { myself = this; sounds = new Dictionary<string, AudioSource>(); DontDestroyOnLoad(gameObject); LoadSound("beep", "file://"+ kspDirectory + "GameData/kOS/GFX/terminal-beep.wav"); LoadSound("click", "file://"+ kspDirectory + "GameData/kOS/GFX/terminal-click.wav"); LoadSound("error", "file://"+ kspDirectory + "GameData/kOS/GFX/error.wav"); }
// All kOS PartModules should actually share the single same instance of me: void Awake() { myself = this; sounds = new Dictionary <string, AudioSource>(); DontDestroyOnLoad(gameObject); LoadSound("beep", "file://" + kspDirectory + "GameData/kOS/GFX/terminal-beep.wav"); LoadSound("click", "file://" + kspDirectory + "GameData/kOS/GFX/terminal-click.wav"); LoadSound("error", "file://" + kspDirectory + "GameData/kOS/GFX/error.wav"); }