diff options
author | chai <215380520@qq.com> | 2024-05-21 17:51:42 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2024-05-21 17:51:42 +0800 |
commit | 7bdc6b149c5e5865907249fb7d39fc4c5c01c77e (patch) | |
tree | a78f284b2ba4e4d58d95c6073d8031337d16196a | |
parent | 9783221fe1c800d87600ec72cc1de6e1739d1cbb (diff) |
* note
-rw-r--r-- | Valheim_r202102_v0.141.2/Valheim/assembly_valheim/BaseAI.cs | 5 | ||||
-rw-r--r-- | Valheim_r202102_v0.141.2/Valheim/assembly_valheim/Pathfinding.cs | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Valheim_r202102_v0.141.2/Valheim/assembly_valheim/BaseAI.cs b/Valheim_r202102_v0.141.2/Valheim/assembly_valheim/BaseAI.cs index 58e8c28..7e9d3dd 100644 --- a/Valheim_r202102_v0.141.2/Valheim/assembly_valheim/BaseAI.cs +++ b/Valheim_r202102_v0.141.2/Valheim/assembly_valheim/BaseAI.cs @@ -813,7 +813,8 @@ public class BaseAI : MonoBehaviour m_character.SetMoveDir(Vector3.zero); } - protected bool HavePath(Vector3 target) + // 判断是否有到目标点(Vector3)的路径 + protected bool HavePath(Vector3 target) { if (m_character.IsFlying()) { @@ -832,7 +833,7 @@ public class BaseAI : MonoBehaviour return m_lastHavePathResult; } - //<寻路> 寻找到目标位置 + // 寻找到目标点(Vector3)的路径(List<Vector3>) protected bool FindPath(Vector3 target) { float time = Time.time; diff --git a/Valheim_r202102_v0.141.2/Valheim/assembly_valheim/Pathfinding.cs b/Valheim_r202102_v0.141.2/Valheim/assembly_valheim/Pathfinding.cs index 8db3b1b..6e82c22 100644 --- a/Valheim_r202102_v0.141.2/Valheim/assembly_valheim/Pathfinding.cs +++ b/Valheim_r202102_v0.141.2/Valheim/assembly_valheim/Pathfinding.cs @@ -5,6 +5,7 @@ using UnityEngine.AI; public class Pathfinding : MonoBehaviour { + // 关键 private class NavMeshTile { public Vector3Int m_tile; |