| | |
| | | |
| | | public static void Init() |
| | | { |
| | | NPCInteractProcessor.s_NpcInteractEvent -= HandleCallback; |
| | | NPCInteractProcessor.s_NpcInteractEvent += HandleCallback; |
| | | |
| | | WindowCenter.Instance.windowAfterOpenEvent -= CheckOpenCollectIcon; |
| | | WindowCenter.Instance.windowAfterOpenEvent += CheckOpenCollectIcon; |
| | | WindowCenter.Instance.windowAfterCloseEvent -= CheckCloseCollectIcon; |
| | | WindowCenter.Instance.windowAfterCloseEvent += CheckCloseCollectIcon; |
| | | } |
| | | |
| | | private static void HandleCallback(E_NpcType type, int npcID, uint sid) |
| | | public static void HandleCallback(E_NpcType type, int npcID, uint sid) |
| | | { |
| | | var _hero = PlayerDatas.Instance.hero; |
| | | if (_hero != null) |
| | |
| | | |
| | | public static void UnInit() |
| | | { |
| | | NPCInteractProcessor.s_NpcInteractEvent -= HandleCallback; |
| | | |
| | | WindowCenter.Instance.windowAfterOpenEvent -= CheckOpenCollectIcon; |
| | | WindowCenter.Instance.windowAfterCloseEvent -= CheckCloseCollectIcon; |
| | | } |