private void UnInitListener() { m_add_btn.CancelLongClick(); m_reduce_btn.RemoveLongClickCallBack(btnReduceNumber); m_add_btn.RemoveLongClickCallBack(btnLongAddNumber); m_buy_btn.RemoveClickCallBack(btnBuy); }
public override void OnHide() { base.OnHide(); GameEvents.Skill_Event.OnSkillFinish -= OnSkillFinish; MessageHandler.UnRegisterMessageHandler(MessageDefine.PlayerPropSellResposne, OnRes); MessageHandler.UnRegisterMessageHandler(MessageDefine.SCDropResp, OnRes); m_curNum = 1; m_bagData = null; m_addNum_btn.RemoveLongClickCallBack(OnAddNum); m_reduceNum_btn.RemoveLongClickCallBack(OnReduce); m_maxNum_btn.RemoveClickCallBack(OnMax); m_yes_btn.RemoveClickCallBack(OnSure); m_close_btn.RemoveClickCallBack(OnClose); }