private void DisposeServices() { _tts = null; _leds = null; _memory = null; _motion = null; _audioDevice = null; }
private void InitializeServices(QiSession session) { _tts = ALTextToSpeech.CreateService(session); _motion = ALMotion.CreateService(session); _memory = ALMemory.CreateService(session); _leds = ALLeds.CreateService(session); try { _audioDevice = ALAudioDevice.CreateService(session); } catch (InvalidOperationException) { Debug.Log("Failed to get ALAudioDevice: Service is not on the robot. Are you use a simulator?"); } }