少年修仙传客户端代码仓库
hch
2025-06-12 ae4cde6009335ff38bfd64dff4ea3c1fdf40df7e
0312 测试移动输出
2个文件已修改
9 ■■■■■ 已修改文件
Fight/GameActor/GActor.cs 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/MapTransferUtility.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GActor.cs
@@ -408,17 +408,19 @@
         && MathUtility.DistanceSqrtXZ(DestPos, destPos) < 0.01f
         && !force)
        {
            Debug.LogFormat("3333333 想要切换至目标npc: {0}", destPos);
            Run();
            return;
        }
        DestPos = destPos;
        Debug.LogFormat("44444444444 想要切换至目标npc: {0}", destPos);
        Vector3 _validPos = Pos;
        if (TryGetValidPos(destPos, ref _validPos))
        {
            DestPos = _validPos;
            m_SearchType = E_SearchType.Static;
            Debug.LogFormat("55555555 想要切换至目标npc: {0}", DestPos);
            MoveTo(_validPos, keepDist);
        }
    }
Fight/MapTransferUtility.cs
@@ -245,6 +245,7 @@
#if UNITY_EDITOR
        Debug.LogFormat("想要切换至目标npc: {0}", _npcID);
#endif
        Debug.LogFormat("想要切换至目标npc: {0}", _npcID);
        StopCoroutine("CoMoveToNPC");
        var _data = new MoveToData
        {
@@ -282,7 +283,7 @@
                yield break;
            }
        }
        Debug.LogFormat("111111111 想要切换至目标npc: {0}", NpcID);
        // 判断是否能够得到到达指定点
        // 获取NPC位置数据
        GAStaticDefine.NPCLocation _npcLocation;
@@ -299,7 +300,7 @@
            if (_npc != null)
            {
                _destPostion = _npc.Pos;
                Debug.LogFormat("222222222 想要切换至目标npc: {0}", _destPostion);
                NpcID = NpcID;
                MapTransferDoType = E_MapTransferDoType.Npc;