private void TerminateThreads() { _rawInputListener?.StopListening(); _controlSender?.Stop(); InputListener?.StopListening(); _serialPortHandler?.StopListening(); _pipe?.Stop(); _killGunListener = true; }
private void TerminateThreads() { _rawInputListener?.StopListening(); _fastIo?.StopListening(); _controlSender?.Stop(); _inputListener?.StopListening(); _serialPortHandler?.StopListening(); _europa?.StopListening(); KillGunListener = true; }
private void TerminateThreads() { _rawInputListener?.StopListening(); _specialControl?.StopListening(); _pokkenControlSender.StopListening(); _gtiClub3ControlSender.StopListening(); _inputListener?.StopListening(); _serialPortHandler?.StopListening(); _europa?.StopListening(); KillGunListener = true; }
private void StopGameFunctionalities() { UnsubscribeListeners(); isPlaying = false; try { inputListener.StopListening(); }catch (ThreadAbortException) { // It is ok that has to happen. } GameThread = null; MonsterController.ClearMonsters(); MonsterController.RefreshingEnabled = false; questService = null; movement.ClearDependencies(); movement = null; inputListener = null; GameFinished?.Invoke(); }