public void SetSprite(string name) { currentSprite = name; sprite = (AnimatedSprite)IoCManager.Resolve<IResourceManager>().GetAnimatedSprite(name); }
public void CopyStateFrom(AnimatedSprite sprite) { SetAnimationState(sprite.CurrentAnimationStateKey); Direction = sprite.Direction; var otherAnimationState = sprite._currentAnimationState; SetLoop(otherAnimationState.Loop); SetTime(otherAnimationState.CurrentTime); }