예제 #1
0
            public void Evaluate(GameTime gameTime, object Input, out bool IsCompleted, out List <object> Result)
            {
                RobotAnimation CurrentRobot = Info.Owner;

                CurrentRobot.ActiveAttackStance = "Walking";

                if (_WeaponIndex == -1)
                {
                    CurrentRobot.InitiateAttack(gameTime, AttackInputs.LightPress);
                }
                else
                {
                    CurrentRobot.PrimaryWeapons.ActiveWeapons[_WeaponIndex].InitiateAttack(gameTime, AttackInputs.LightPress, CurrentRobot.CurrentMovementInput, CurrentRobot.ActiveMovementStance, false, CurrentRobot);
                }

                Result      = new List <object>();
                IsCompleted = true;
            }