コード例 #1
0
        public void Update(GameTime gameTime)
        {
            if (controlledUnit == null)
            {
                return;
            }
            if (AttackTarget != null && AttackTarget.IsDead())
            {
                AttackTarget = null;
            }

            fsm.Update(gameTime);
            if (steering != null)
            {
                steering.Steer((float)gameTime.ElapsedGameTime.TotalSeconds);
            }
        }