public void RunDeathAnimation()
        {
            var deathSoundEffect    = _personSoundStorage.GetDeathEffect(Actor.Person);
            var soundEffectInstance = deathSoundEffect.CreateInstance();

            _rootSprite.RemoveChild(_graphicsRoot.RootSprite);

            var corpse = new CorpseViewModel(_game, _graphicsRoot, _rootSprite.Position, soundEffectInstance);

            _sectorViewModelContext.CorpseManager.Add(corpse);
        }
Exemple #2
0
 public void Add(CorpseViewModel corpseViewModel)
 {
     _items.Add(corpseViewModel);
 }