Exemplo n.º 1
0
        public static SceneSoundCommandInfo LoadSoundCommand(XElement node, string basePath)
        {
            var info = new SceneSoundCommandInfo();

            info.SoundInfo = new SoundInfo {
                Name = node.RequireAttribute("name").Value
            };

            return(info);
        }
Exemplo n.º 2
0
 private void SoundCommand(SceneSoundCommandInfo command)
 {
     Engine.Instance.SoundSystem.PlaySfx(command.SoundInfo.Name);
 }