Пример #1
0
        public DataObject Copy(Sprite parent)
        {
            var newSoundInfoRef = new SoundReference(parent);
            newSoundInfoRef.reference = reference;
            newSoundInfoRef.Sound = XPathHelper.getElement(reference, parent) as Sound;

            return newSoundInfoRef;
        }
Пример #2
0
 internal override void LoadFromXML(XElement xRoot)
 {
     if (xRoot.Element("soundInfo") != null)
     soundReference = new SoundReference(xRoot.Element("soundInfo"), sprite);
 }