Exemplo n.º 1
0
        // List because IEnumerable gets evaluated too late.
        void PlayAttack(Actor self, WPos attackPosition, List <Player> affectedPlayers)
        {
            renderUnit.PlayCustomAnim(self, "mouth");
            Sound.Play(swallow.Info.WormAttackSound, self.CenterPosition);

            Game.RunAfterDelay(1000, () =>
            {
                foreach (var affectedPlayer in affectedPlayers)
                {
                    NotifyPlayer(affectedPlayer, attackPosition);
                }
            });
        }
Exemplo n.º 2
0
 void PlayAttackAnimation(Actor self)
 {
     renderUnit.PlayCustomAnim(self, "mouth");
 }