void UnbindEvent() { CSPersonnel.UnRegisterProcessingIndexChangedListener(SetNpcProcessingIndex); CSPersonnel.UnRegisterProcessingIndexInitListener(InitNpcProcessingIndex); if (CSUI_MainWndCtrl.Instance != null && CSUI_MainWndCtrl.Instance.CollectUI != null) { uiObj.e_InitCollectEvent -= InitUI; uiObj.e_UpdateCollect -= UpdateDataToUi; uiObj.e_AddtoClick -= OnAddClick; uiObj.e_RemoveEvent -= OnRemoveClick; uiObj.e_StartClick -= TryStartProcessing; uiObj.e_ProcessChoseEvent -= OnSelectProcess; uiObj.e_StopClick -= TryStop; uiObj.e_AutoClick -= SetAuto; //lz-2016.07.14 SetRunCount操作事件 uiObj.e_SetRunCountEvent -= OnSetRunCount; } }