From fb84fb34487184ceb5c73d248eb79152c27f5393 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期二, 21 五月 2019 19:54:55 +0800
Subject: [PATCH] 3642 【2.0】【bug】灵草园采集错误
---
System/MainInterfacePanel/MainCollectBehaviour.cs | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/System/MainInterfacePanel/MainCollectBehaviour.cs b/System/MainInterfacePanel/MainCollectBehaviour.cs
index 4b1460f..9c3c849 100644
--- a/System/MainInterfacePanel/MainCollectBehaviour.cs
+++ b/System/MainInterfacePanel/MainCollectBehaviour.cs
@@ -19,7 +19,8 @@
int collectNpcId = 0;
uint serverInstanceId = 0;
- DungeonModel dungeonModel {
+ DungeonModel dungeonModel
+ {
get { return ModelCenter.Instance.GetModel<DungeonModel>(); }
}
@@ -37,7 +38,6 @@
collectNpcId = npcId;
serverInstanceId = sid;
-
var mapId = dungeonModel.GetDataMapIdByMapId(PlayerDatas.Instance.baseData.MapID);
m_ContainerNormalCollect.gameObject.SetActive(false);
m_GatherSoulBuild.gameObject.SetActive(false);
@@ -82,7 +82,8 @@
{
if (collectNpcId != 0 && serverInstanceId != 0)
{
- NPCInteractProcessor.InvokeEvent(E_NpcType.Collect, collectNpcId, serverInstanceId);
+ PrepareHandler.Instance.HandleCallback(E_NpcType.Collect, collectNpcId, serverInstanceId);
+ // NPCInteractProcessor.InvokeEvent(E_NpcType.Collect, collectNpcId, serverInstanceId);
}
}
}
--
Gitblit v1.8.0