public SoundType(List <TextNode> nodes, bool isDocumentation = false) { TypeLoader.SetValues(this, nodes); if (!isDocumentation) { AudioManager.LoadSound(Name, FileExplorer.FindPath(FileExplorer.Misc, Name, ".wav")); Buffer = AudioManager.GetBuffer(Name); } }
internal static GameAudioSource Play(GameAudioBuffer buffer, bool inGame, float volume, float pitch, Vector position, bool loops) { return(device.Play(buffer, inGame, volume, pitch, position, loops)); }