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); } } }
public override void UpdateIntput(UnitBase unit, MovementBase Movement) { Movement.SetMovementVector(MathExt.DirectionFacing(MathExt.Angle(unit.Position, unit.Data.Screen.Unit.Player.Position)) * 0.5f); }