//Call this to gather all ores in specified area public void GatherOres(List <Point> ores, Rotation rotation) { Travel t = new Travel(); bool landed = true; while (ores.Count > 0) { float Min_Distance = 2f; if (landed) { t.Mount(); } landed = true; float Max_Z = 550f; t.Lift(Max_Z); Point dest = GetClosest(t, ores); float distance = 0; while (true) { distance = t.MoveToPoint(dest, Min_Distance, 0.05f); if (distance <= Min_Distance) { break; } } landed = t.Land(dest.getZ()); ClickOre(); Thread.Sleep(3000); Console.WriteLine(ores.Count); rotation.Attack(); ClickOre(); Thread.Sleep(3000); } }