Пример #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);
        }
Пример #2
0
 private void SoundCommand(SceneSoundCommandInfo command)
 {
     Engine.Instance.SoundSystem.PlaySfx(command.SoundInfo.Name);
 }