少年修仙传客户端代码仓库
client_linchunjie
2019-05-22 47a4d355254b69d64f5b9982b0c75b23c076009c
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
3个文件已修改
32 ■■■■ 已修改文件
Fight/GameActor/GA_NpcCollect.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/PrepareHandler.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/MainCollectBehaviour.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GA_NpcCollect.cs
@@ -301,6 +301,21 @@
        }
        PrepareHandler.Instance.Leave(this);
        GA_Hero _hero = PlayerDatas.Instance.hero;
        if (_hero != null)
        {
            if (_hero.SelectTarget != null && ServerInstID == _hero.SelectTarget.ServerInstID)
            {
                SelectionManager.Release(SelectionManager.E_Type.Green);
                _hero.SelectTarget = null;
            }
            if (_hero.LockTarget == this)
            {
                _hero.LockTarget = null;
            }
        }
    }
    public override bool CanBeSelected()
Fight/PrepareHandler.cs
@@ -96,12 +96,6 @@
    public void HandleCallback(E_NpcType type, int npcID, uint sid)
    {
        var _target = GAMgr.Instance.GetBySID(sid);
        if (!(_target is GA_NpcCollect))
        {
            return;
        }
        var _hero = PlayerDatas.Instance.hero;
        if (_hero != null)
        {
System/MainInterfacePanel/MainCollectBehaviour.cs
@@ -82,15 +82,8 @@
        {
            if (collectNpcId != 0 && serverInstanceId != 0)
            {
                var _npc = GAMgr.Instance.GetBySID(serverInstanceId);
                if (_npc is GA_NpcCollect)
                {
                    PrepareHandler.Instance.HandleCallback(E_NpcType.Collect, collectNpcId, serverInstanceId);
                }
                else if (_npc is GA_NpcClientCollect)
                {
                    ClientCollectUtility.HandleCallback(E_NpcType.Collect, collectNpcId, serverInstanceId);
                }
                PrepareHandler.Instance.HandleCallback(E_NpcType.Collect, collectNpcId, serverInstanceId);
                ClientCollectUtility.HandleCallback(E_NpcType.Collect, collectNpcId, serverInstanceId);
                // NPCInteractProcessor.InvokeEvent(E_NpcType.Collect, collectNpcId, serverInstanceId);
            }
        }