예제 #1
0
        public void Update(GameTime gameTime)
        {
            if (!this.InLoadingScreen)
            {
                _actionProcessor.Update(gameTime);

                if (this.Descriptor.Stats.Vitality <= 0)
                {
                    this.OnDeath();
                    return;
                }

                if (this.State == ActorStates.Moving)
                {
                    this.ProcessMovement(gameTime);
                }
            }
        }