From d4b5806a57e4e88a1fc57dd95f17e185f33e4e43 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期六, 13 四月 2019 16:53:31 +0800
Subject: [PATCH] 382 增加前端采集物采集完毕回调
---
Fight/GameActor/GA_NpcClientCollect.cs | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/Fight/GameActor/GA_NpcClientCollect.cs b/Fight/GameActor/GA_NpcClientCollect.cs
index bc551db..a3504a2 100644
--- a/Fight/GameActor/GA_NpcClientCollect.cs
+++ b/Fight/GameActor/GA_NpcClientCollect.cs
@@ -6,6 +6,7 @@
public class GA_NpcClientCollect : GA_NpcClientFunc
{
+ public static UnityAction<uint> OnCollectFinished;
private static List<uint> m_ArrivedList = new List<uint>();
public static event UnityAction<uint, int> OnArrive;
public static event UnityAction<uint, int> OnLeave;
@@ -168,6 +169,13 @@
{
ClientSceneManager.Instance.NpcDead(belongEventID, this, NpcConfig.NPCID);
}
+ else
+ {
+ if (OnCollectFinished != null)
+ {
+ OnCollectFinished(ServerInstID);
+ }
+ }
GAMgr.Instance.Release(this);
}
--
Gitblit v1.8.0