public static void PathFinder (Client C, Path Distance)
{
if (C.Recording)
{
if(Distance to C.Path[C.PathIndex] < 7);
{
if(C.PathIndex + 1< C.Path.Count)
{
C.PathIndex++;
}
else
{
C.Recording = true;
C.Path = new List<Coord>();
C.PathIndex = 0;
C.Path.Add(new Point(C.X, C.Y));
C.Path = C.Path.Reverse();
C.PathIndex = 1;
}
Coord To = Calculations.PullWeights(MakeCoord(C.X, C.Y), C.Path[C.PathIndex]);
}
}
}
我得到一些错误,但我真的不知道如何解决这个问题。我已经看过解决方案,但仍然有点无知>。 <不能转换类型为bool
的错误在哪里发生?他们有什么错误? – 2011-02-06 05:56:04
除非您提供有用的信息,例如您遇到的错误以及发生的线路 - 我们无法为您提供帮助。 – 2011-02-06 06:01:53