Ejemplo n.º 1
0
        protected bool MoveToNextAnimState()
        {
            mStateIterator.MoveNext();
            if (mRenderedAnims.Contains(mStateIterator.CurrentKey))
            {
                mCurrentAnimState = null;
                return false;
            }
            mCurrentAnimState = mStateIterator.Current;
            mCurrentAnimState.Enabled = true;

            mAnimationInfo = new AnimationInfo
                                {
                                    FPS = mAnimationFramesPerSecond,
                                    Frames = 0,
                                    Name = mCurrentAnimState.AnimationName
                                };
            mAnimationCollection.Animations.Add(mAnimationInfo);
            return true;
        }