protected override void OnDragComplete(Vector3 downPos, Vector3 upPos) { Vector2 regularizedPos1 = GetRegularizedPos(Vector2.Min(downPos, upPos), true); Vector2 regularizedPos2 = GetRegularizedPos(Vector2.Max(downPos, upPos), false); AttackTool.MarkForAttack(regularizedPos1, regularizedPos2, false); CaptureTool.MarkForCapture(regularizedPos1, regularizedPos2, false); }
public override bool CanBeAppliedTo(GameComponent Entity, WorldManager World) { return(AttackTool.CanAttack(World, Entity)); }