| | |
| | | {
|
| | | Vector3 _curPos = Pos;
|
| | | _curPos.y = 0;
|
| | | Debug.LogFormat("6666666 想要切换至目标npc: {0} {1}", position, m_Path);
|
| | |
|
| | | try
|
| | | {
|
| | | if (NavMesh.CalculatePath(_curPos, position, NavMesh.AllAreas, m_Path))
|
| | | {
|
| | | m_CornerIndex = 0;
|
| | |
| | | }
|
| | | Run();
|
| | | State = E_ActorState.AutoRun;
|
| | | Debug.LogFormat("77777777 想要切换至目标npc: {0}", position);
|
| | |
|
| | | // if (this is GActorNpcFight
|
| | | // && (ServerInstID == 133 || ServerInstID == 134 || ServerInstID == 112))
|
| | | // {
|
| | | // Debug.LogFormat("{0} 开始寻路至点: {1}", ServerInstID, position);
|
| | | // }
|
| | | }
|
| | | }
|
| | | catch (System.Exception e)
|
| | | {
|
| | | Debug.LogError("NavMeshPath error: " + e.Message);
|
| | | return;
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | public static bool TryGetValidPos(Vector3 position, ref Vector3 validPosition)
|
| | |
| | | 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(() => |
| | | { |