Esempio n. 1
0
            public void Evaluate(GameTime gameTime, object Input, out bool IsCompleted, out List <object> Result)
            {
                RobotAnimation TargetRobot  = (RobotAnimation)ArrayReferences[0].ReferencedScript.GetContent();
                RobotAnimation CurrentRobot = Info.Owner;

                Vector2 Target = new Vector2(TargetRobot.Position.X - CurrentRobot.Position.X, TargetRobot.Position.Y - CurrentRobot.Position.Y);

                CurrentRobot.UpdateAllWeaponsAngle(Target);

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