방향성 지정 오류 수정
This commit is contained in:
6
Form1.cs
6
Form1.cs
@@ -17,7 +17,7 @@ namespace AStarPathFinding
|
||||
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public static bool Direction { get; set; } // 방향 설정!!!
|
||||
public static string Direction { get; set; } // 방향 설정!!!
|
||||
|
||||
//구조체=====================
|
||||
struct stCurrentAction//사용자의 세팅(타일배치)종류 확인용 구조체
|
||||
@@ -417,14 +417,14 @@ namespace AStarPathFinding
|
||||
SetCurrentAction(null, eTileState.None);
|
||||
pathFinder.PathFind(pn_Table, startPoint, goalPoint);
|
||||
clickState = false;
|
||||
Direction = false;
|
||||
Direction = "Up";
|
||||
}
|
||||
else
|
||||
{
|
||||
SetCurrentAction(null, eTileState.None);
|
||||
pathFinder.PathFind(pn_Table, goalPoint, startPoint);
|
||||
clickState = true;
|
||||
Direction = true;
|
||||
Direction = "Up";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user