コード例 #1
0
        public void _Update()
        {
            if (GameStateManager.CurrentState == Precidence)
            {
                if (!blending)
                {
                    if (currentAnimation != null)
                    {
                        currentAnimation.Update(skeleton.Effect);

                        Apply(currentAnimation._LimbAnimations);
                        skeleton.CalculateTransforms();
                    }
                }
                else
                {
                    blender.Update(skeleton.Effect);

                    Apply(blender._CurrentAnimations);
                    skeleton.CalculateTransforms();
                }
            }
            else
            {
                currentAnimation.Reset();
            }
        }