From 204ef05a831c9484e2abc561d27ecbff7c797453 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期四, 12 六月 2025 16:44:12 +0800 Subject: [PATCH] 0312 还原移动输出,限时代金券特殊处理显示 --- Fight/GameActor/GActor.cs | 38 ++++++++++++++------------------------ System/Vip/DayGoods.cs | 5 +++++ 2 files changed, 19 insertions(+), 24 deletions(-) diff --git a/Fight/GameActor/GActor.cs b/Fight/GameActor/GActor.cs index cba107a..68be231 100644 --- a/Fight/GameActor/GActor.cs +++ b/Fight/GameActor/GActor.cs @@ -487,35 +487,25 @@ { Vector3 _curPos = Pos; _curPos.y = 0; - Debug.LogFormat("6666666 鎯宠鍒囨崲鑷崇洰鏍噉pc: {0} {1}", position, m_Path); - try + if (NavMesh.CalculatePath(_curPos, position, NavMesh.AllAreas, m_Path)) { - if (NavMesh.CalculatePath(_curPos, position, NavMesh.AllAreas, m_Path)) + m_CornerIndex = 0; + m_KeepDist = keepDist; + PathFindStatus = E_PathFindStatus.Moving; + if (OnPathFindStart != null) { - m_CornerIndex = 0; - m_KeepDist = keepDist; - PathFindStatus = E_PathFindStatus.Moving; - if (OnPathFindStart != null) - { - OnPathFindStart(); - } - Run(); - State = E_ActorState.AutoRun; - Debug.LogFormat("77777777 鎯宠鍒囨崲鑷崇洰鏍噉pc: {0}", position); - // if (this is GActorNpcFight - // && (ServerInstID == 133 || ServerInstID == 134 || ServerInstID == 112)) - // { - // Debug.LogFormat("{0} 寮�濮嬪璺嚦鐐�: {1}", ServerInstID, position); - // } + OnPathFindStart(); } - } - catch (System.Exception e) - { - Debug.LogError("NavMeshPath error: " + e.Message); - return; - } + Run(); + State = E_ActorState.AutoRun; + // if (this is GActorNpcFight + // && (ServerInstID == 133 || ServerInstID == 134 || ServerInstID == 112)) + // { + // Debug.LogFormat("{0} 寮�濮嬪璺嚦鐐�: {1}", ServerInstID, position); + // } + } } public static bool TryGetValidPos(Vector3 position, ref Vector3 validPosition) diff --git a/System/Vip/DayGoods.cs b/System/Vip/DayGoods.cs index 309726a..08e2455 100644 --- a/System/Vip/DayGoods.cs +++ b/System/Vip/DayGoods.cs @@ -76,6 +76,11 @@ var Item = ItemConfig.Get(itemID); ItemCellModel cellModel = new ItemCellModel(itemID, true, (ulong)goods.items[i][1]); ItemCell.Init(cellModel); + if (itemID == 541) + { + //涓存椂澶勭悊 + ItemCell.countText.text = "6480"; + } ItemCell.button.RemoveAllListeners(); ItemCell.button.AddListener(() => { -- Gitblit v1.8.0