少年修仙传客户端代码仓库
client_Hale
2018-08-30 3586574e1b928027d5bbb00f6af209b715a6f7b5
Fixed #2199 事件调用顺序调整
1个文件已修改
20 ■■■■ 已修改文件
Fight/GameActor/GAMgr.cs 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GAMgr.cs
@@ -574,16 +574,6 @@
    /// <param name="actor"></param>
    public void Release(GActor actor)
    {
        var _npcfight = actor as GActorNpcFight;
        if (_npcfight != null)
        {
            if (OnFightNpcRelease != null)
            {
                OnFightNpcRelease((uint)_npcfight.NpcConfig.NPCID);
            }
        }
#if UNITY_EDITOR
        string _content = string.Format("GAMgr => 对角色 SID: {0}, CID: {1} 进行了回收", actor.ServerInstID, actor.ClientInstID);
        RuntimeLogUtility.AddLog_Green(_content, actor.ServerInstID);
@@ -653,6 +643,16 @@
            m_Cid2GA.Remove(actor.ClientInstID);
        }
        var _npcfight = actor as GActorNpcFight;
        if (_npcfight != null)
        {
            if (OnFightNpcRelease != null)
            {
                OnFightNpcRelease((uint)_npcfight.NpcConfig.NPCID);
            }
        }
        if (_needReSyncPlayerCount)
        {
            OnPlayerSyncCountChange();