diff --git a/.idea/.idea.TestF/.idea/workspace.xml b/.idea/.idea.TestF/.idea/workspace.xml
index 85718bc..d30e87f 100644
--- a/.idea/.idea.TestF/.idea/workspace.xml
+++ b/.idea/.idea.TestF/.idea/workspace.xml
@@ -6,68 +6,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -197,7 +137,7 @@
-
+
@@ -240,26 +180,13 @@
file://$PROJECT_DIR$/Assets/Scripts/Boss/IBoss.cs
- 53
-
-
-
-
-
-
-
-
-
-
-
- file://$PROJECT_DIR$/Assets/Scripts/Boss/IBoss.cs
- 83
+ 84
-
+
-
+
diff --git a/Assets/Scripts/BFS/BFS.cs b/Assets/Scripts/BFS/BFS.cs
index 862c1d7..fcc6910 100644
--- a/Assets/Scripts/BFS/BFS.cs
+++ b/Assets/Scripts/BFS/BFS.cs
@@ -214,14 +214,22 @@ public class BFS
isTrue = false;
Debug.LogError("没找到路径卡死了,强制跳出的");
}
- });
+ }).Forget();
Node node = end;
while (isTrue)
{
if (this._nodeMap.TryGetValue(node, out node))
{
+ if (node != null)
+ {
+ Debug.Log($"{node.index} is null");
+ isTrue = false;
+ break;
+ }
+
if (!this.ids.Contains(node.index))
{
+ Debug.Log($"正在查询的点{node.index}");
this.ids.Add(node.index);
path.AddNode(new PathNode(node.index, node.data));
}
diff --git a/Assets/Scripts/Boss/IBoss.cs b/Assets/Scripts/Boss/IBoss.cs
index bc7f7be..351eb47 100644
--- a/Assets/Scripts/Boss/IBoss.cs
+++ b/Assets/Scripts/Boss/IBoss.cs
@@ -55,6 +55,7 @@ public class Boss : IBoss
this._name = room.roomName;
this._room = room;
this._info = gameObject.GetComponent();
+ this._isMoving = true;
}
public async UniTask WaitMoveRoomAndKillAsync(CancellationToken token)