public override void triggerEvent() { leverState ^= (byte)bridgeLeverPosition; audioSource.EnqueueQueue(ref leverSound, AudioType.SoundEffect); base.triggerEvent(); if (leverState == leverCorrect) { audioSource.EnqueueQueue(ref successSound, AudioType.SoundEffect); } }
public void GetLeverStatus(LeverLocation LeverLocation) { switch (LeverLocation) { case LeverLocation.Left: _playback.EnqueueQueue(ref _acLeft, AudioType.VoiceOver); break; case LeverLocation.Middle: _playback.EnqueueQueue(ref _acMiddle, AudioType.VoiceOver); break; case LeverLocation.Right: _playback.EnqueueQueue(ref _acRight, AudioType.VoiceOver); break; } switch (_levers[(int)LeverLocation]) { case LeverPosition.low: _playback.EnqueueQueue(ref _acLow, AudioType.VoiceOver); break; case LeverPosition.mid: _playback.EnqueueQueue(ref _acMid, AudioType.VoiceOver); break; case LeverPosition.high: _playback.EnqueueQueue(ref _acHigh, AudioType.VoiceOver); break; } _playback.PlayAudioQueue(AudioType.VoiceOver); }