Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | }
|
| | |
|
| | | 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()
|
| | |
| | | |
| | | 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) |
| | | { |
| | |
| | | {
|
| | | 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);
|
| | | }
|
| | | }
|