少年修仙传客户端代码仓库
client_Hale
2019-04-13 d4b5806a57e4e88a1fc57dd95f17e185f33e4e43
382 增加前端采集物采集完毕回调
1个文件已修改
8 ■■■■■ 已修改文件
Fight/GameActor/GA_NpcClientCollect.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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);
            }