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