public void PlayAnimation(string name, bool looped) { _currentAnimation = Parent.AnimationClips[name]; _repeatAnimation = looped; _animationPlaying = true; _currentFrame = _currentAnimation.StartRow; }
public void StopAnimation() { _currentFrame = _currentAnimation.EndRow; _currentAnimation = null; _animationPlaying = false; _repeatAnimation = false; }