public static SceneSoundCommandInfo LoadSoundCommand(XElement node, string basePath) { var info = new SceneSoundCommandInfo(); info.SoundInfo = new SoundInfo { Name = node.RequireAttribute("name").Value }; return(info); }
private void SoundCommand(SceneSoundCommandInfo command) { Engine.Instance.SoundSystem.PlaySfx(command.SoundInfo.Name); }