private void TryToAttack(BoardController boardController) { Dictionary <Point, List <Point> > allPaths = AIUtils.GetAllPaths(this.unit.Board, this.unit.UnitsMap, this.unit.GetPosition()); Unit targetInLine = AIUtils.GetUnitInLine(this.unit.UnitsMap, this.unit.GetPosition(), allPaths); if (targetInLine != null) { this.unit.Target = targetInLine; //// Logcat.I(this, $"Target identified {targetInLine.GetPosition()}"); Attack(boardController); } }