From 23f0c804ced801fc322fdf7e2c05d3fbbec3c60b Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期五, 26 四月 2019 18:02:09 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 Fight/GameActor/GA_NpcClientFightNorm.cs |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/Fight/GameActor/GA_NpcClientFightNorm.cs b/Fight/GameActor/GA_NpcClientFightNorm.cs
index c5b9fb6..40cda21 100644
--- a/Fight/GameActor/GA_NpcClientFightNorm.cs
+++ b/Fight/GameActor/GA_NpcClientFightNorm.cs
@@ -1,5 +1,6 @@
 锘縰sing Snxxz.UI;
 using UnityEngine;
+using System.Collections.Generic;
 
 public class GA_NpcClientFightNorm : GActorNpcFight
 {
@@ -33,6 +34,8 @@
 
     public bool lockCommonAtk = false;
     public int lockSkillID = -1;
+
+    public Dictionary<int, SFXController> ProcessEffectDict = new Dictionary<int, SFXController>();
 
     public void AutoAI()
     {
@@ -233,6 +236,13 @@
             HeroRoundGird.Instance.Release(posIndex);
             posIndex = -1;
         }
+
+        foreach (var _sfx in ProcessEffectDict.Values)
+        {
+            SFXPlayUtility.Instance.Release(_sfx);
+        }
+        ProcessEffectDict.Clear();
+
         base.OnUnit();
     }
 

--
Gitblit v1.8.0