From ae4cde6009335ff38bfd64dff4ea3c1fdf40df7e Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期四, 12 六月 2025 12:32:49 +0800 Subject: [PATCH] 0312 测试移动输出 --- Fight/GameActor/GActor.cs | 4 +++- Fight/MapTransferUtility.cs | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Fight/GameActor/GActor.cs b/Fight/GameActor/GActor.cs index b57b6b9..fb2b9ac 100644 --- a/Fight/GameActor/GActor.cs +++ b/Fight/GameActor/GActor.cs @@ -408,17 +408,19 @@ && MathUtility.DistanceSqrtXZ(DestPos, destPos) < 0.01f && !force) { + Debug.LogFormat("3333333 鎯宠鍒囨崲鑷崇洰鏍噉pc: {0}", destPos); Run(); return; } DestPos = destPos; - + Debug.LogFormat("44444444444 鎯宠鍒囨崲鑷崇洰鏍噉pc: {0}", destPos); Vector3 _validPos = Pos; if (TryGetValidPos(destPos, ref _validPos)) { DestPos = _validPos; m_SearchType = E_SearchType.Static; + Debug.LogFormat("55555555 鎯宠鍒囨崲鑷崇洰鏍噉pc: {0}", DestPos); MoveTo(_validPos, keepDist); } } diff --git a/Fight/MapTransferUtility.cs b/Fight/MapTransferUtility.cs index b9e8ac5..f1c3feb 100644 --- a/Fight/MapTransferUtility.cs +++ b/Fight/MapTransferUtility.cs @@ -245,6 +245,7 @@ #if UNITY_EDITOR Debug.LogFormat("鎯宠鍒囨崲鑷崇洰鏍噉pc: {0}", _npcID); #endif + Debug.LogFormat("鎯宠鍒囨崲鑷崇洰鏍噉pc: {0}", _npcID); StopCoroutine("CoMoveToNPC"); var _data = new MoveToData { @@ -282,7 +283,7 @@ yield break; } } - + Debug.LogFormat("111111111 鎯宠鍒囨崲鑷崇洰鏍噉pc: {0}", NpcID); // 鍒ゆ柇鏄惁鑳藉寰楀埌鍒拌揪鎸囧畾鐐� // 鑾峰彇NPC浣嶇疆鏁版嵁 GAStaticDefine.NPCLocation _npcLocation; @@ -299,7 +300,7 @@ if (_npc != null) { _destPostion = _npc.Pos; - + Debug.LogFormat("222222222 鎯宠鍒囨崲鑷崇洰鏍噉pc: {0}", _destPostion); NpcID = NpcID; MapTransferDoType = E_MapTransferDoType.Npc; -- Gitblit v1.8.0