public override void OnExit() { m_btnConnectA.RemoveClickCallback(OnBtnConnectAClick); m_btnDisconnect.RemoveClickCallback(OnBtnDisconnectClick); m_btnBLE_1.RemoveClickCallback(OnBtnBLE1ConnectClick); m_btnBLE_2.RemoveClickCallback(OnBtnBLE2ConnectClick); }
public override void OnExit() { BluetoothEvents.OnVolumeKeyEvent -= OnVolumeKeyEventHandler; MessageHandler.UnRegisterMessageHandler((int)MessageDefine.E_D2C_MOTOR_SPEED, OnGetMotorGearResponse); m_btnStartup.RemoveClickCallback(OnBtnStartUpClick); m_btnStop.RemoveClickCallback(OnBtnStopClick); m_btnGear1.RemoveClickCallback(OnSetGear1Click); m_btnGear2.RemoveClickCallback(OnSetGear2Click); m_btnGear3.RemoveClickCallback(OnSetGear3Click); m_btnGear4.RemoveClickCallback(OnSetGear4Click); }
public override void OnExit() { base.OnExit(); m_btnPowerOff.RemoveClickCallback(OnBtnPowerOffClick); m_btnEnterProgramming.RemoveClickCallback(OnBtnEnterProgrammingClick); m_btnDown.RemoveClickCallback(OnBtnDownClick); m_btnUp.RemoveClickCallback(OnBtnUpClick); m_btnRefreshBattery.RemoveClickCallback(OnBtnRefreshBatteryClick); m_brakeTimeSettingComponent.RemoveOnSliderDragEndCallback(OnBrakeTimeSettingFinishCallback); m_maxAccelerationSettingComponent.RemoveOnSliderDragEndCallback(OnAcceleratorSettingFinishCallback); for (int i = 0; i < m_gearAccelerationSettingComponents.Count; ++i) { m_gearAccelerationSettingComponents[i].RemoveOnSliderDragEndCallback(OnSettingGearAcceleratorCallback); m_gearAccelerationSettingComponents[i].SetActive(false); } }