예제 #1
0
        public override void Update(GameTime gameTime)
        {
            // Start/stop animations when SPACE is pressed
            if (InputService.IsPressed(Keys.Space, false))
            {
                if (AnimationService.IsAnimated(_animatableX))
                {
                    StopAnimations();
                }
                else
                {
                    StartAnimations();
                }
            }

            base.Update(gameTime);
        }