Ejemplo n.º 1
0
        public override void UpdateIntput(UnitBase unit, MovementBase Movement)
        {
            Movement.SetMovementVector(InputExt.KeyBoardAnalrog);

            if (InputExt.OnePressed(Keys.Space))
            {
                if (unit.Status.Attackevt != null)
                {
                    unit.Status.Attackevt(unit);
                }
            }
        }
Ejemplo n.º 2
0
 public override void UpdateIntput(UnitBase unit, MovementBase Movement)
 {
     Movement.SetMovementVector(MathExt.DirectionFacing(MathExt.Angle(unit.Position, unit.Data.Screen.Unit.Player.Position)) * 0.5f);
 }