protected void ChangeSprite(Sprite sprite) { string currentAnimation = Sprite.GetAnimation(); int currentFrame = Sprite.GetCurrentFrame(); Sprite = sprite; sprite.ChangeAnimation(currentAnimation, true); sprite.SetCurrentFrame(currentFrame); }
protected void ChangeSprite(Sprite sprite) { string currentAnimation = Sprite.GetAnimation(); int currentFrame = Sprite.GetCurrentFrame(); Sprite = sprite; sprite.ChangeAnimation(currentAnimation, true); sprite.SetCurrentFrame(currentFrame); }