From 6bbd088cf571fd74d127ad643e85dfeaa2e2b539 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期一, 20 五月 2019 20:40:30 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into HazyRegion_1

---
 Fight/GameActor/PersonalEnemy.cs |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/Fight/GameActor/PersonalEnemy.cs b/Fight/GameActor/PersonalEnemy.cs
index 584e233..c252182 100644
--- a/Fight/GameActor/PersonalEnemy.cs
+++ b/Fight/GameActor/PersonalEnemy.cs
@@ -18,16 +18,16 @@
     public static Dictionary<uint, uint> m_CBinSdDict = new Dictionary<uint, uint>();
     public static Dictionary<uint, uint> m_SBindCDict = new Dictionary<uint, uint>();
 
-    private static List<PersonalEnemy> m_UnUsed = new List<PersonalEnemy>();
-
     private static Dictionary<uint, List<BindInfo>> BindInfoDict = new Dictionary<uint, List<BindInfo>>();
+
+    public static UnityEngine.Events.UnityAction<GA_NpcClientFightNorm> OnNpcAppear;
 
     public static void UnInit()
     {
         m_Map.Clear();
         m_CBinSdDict.Clear();
         m_SBindCDict.Clear();
-        m_UnUsed.Clear();
+        BindInfoDict.Clear();
     }
 
     public static uint GetPersionEnemySID(uint sid)
@@ -77,7 +77,7 @@
 
         var _bindInfo = BindInfoDict[h0408.NPCID][0];
         var _config = NPCConfig.Get((int)h0408.NPCID);
-        GActorNpcFight _npc = null;
+        GA_NpcClientFightNorm _npc = null;
         if (_config.IsBoss != (int)E_MonsterType.Normal
          && _config.IsBoss != (int)E_MonsterType.Elite)
         {
@@ -95,6 +95,10 @@
             _npc.BornPos = _npc.Pos = _vaildPos;
             m_CBinSdDict[_npc.ServerInstID] = h0408.ObjID;
             m_SBindCDict[h0408.ObjID] = _npc.ServerInstID;
+            if (OnNpcAppear != null)
+            {
+                OnNpcAppear(_npc);
+            }
         }
 
         BindInfoDict[h0408.NPCID].RemoveAt(0);

--
Gitblit v1.8.0