public void Spin() { if (_spinCycles == MaxSpinCycles || _spinFrameDelay.Delayed) { return; } switch (_facing) { case Direction.Left: _facing = Direction.Up; break; case Direction.Up: _facing = Direction.Right; break; case Direction.Right: _facing = Direction.Down; _spinCycles++; break; case Direction.Down: _facing = Direction.Left; break; default: throw new ArgumentOutOfRangeException(); } Sprite = LinkSpriteFactory.Instance.CreateNoWeapon(_facing); Sprite.PauseAnimation(); }
public void PauseAnimation() { _sprite?.PauseAnimation(); }