From 001ecea10559b6121c6ed22e1370619e6dd95ab2 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期四, 18 四月 2019 14:23:28 +0800
Subject: [PATCH] 6540  【前端】【2.0】区域地图新增功能NPC显示

---
 System/WorldMap/LocalMapFindPath.cs |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/System/WorldMap/LocalMapFindPath.cs b/System/WorldMap/LocalMapFindPath.cs
index c92b425..d338ae2 100644
--- a/System/WorldMap/LocalMapFindPath.cs
+++ b/System/WorldMap/LocalMapFindPath.cs
@@ -404,9 +404,19 @@
 
         private void FoucsEventPoint(int _eventPoint)
         {
+            var config = MapEventPointConfig.Get(_eventPoint);
+            if (config != null)
+            {
+                var npcConfig = NPCConfig.Get(config.NPCID);
+                if (npcConfig.NPCType == 0)
+                {
+                    m_EventPointInstroduce.gameObject.SetActive(false);
+                    return;
+                }
+            }
+
             if (model.selectedMapEventPoint != -1)
             {
-                var config = MapEventPointConfig.Get(_eventPoint);
                 var monsterRefreshConfig = MonsterRefreshPointConfig.Get(config.NPCID);
                 var position = new Vector3(monsterRefreshConfig.Position.x * 0.5f, 0, monsterRefreshConfig.Position.y * 0.5f);
 

--
Gitblit v1.8.0