/// <summary> /// Stops the animation of the provided sprite component. /// </summary> /// <param name="spriteComponent">the sprite component to stop</param> public void Stop(SpriteComponent spriteComponent) { spriteComponent.ElapsedTime = 0; spriteComponent.CurrentIndexIndex = 0; spriteComponent.ClearAnimations(); playingSprites.Remove(spriteComponent); }