public override void UpdateInteraction(string sectionID, string itemID, string itemDescription) { //Debug.Log("Section: " + sectionID + ", item: " + itemID + ", description: " + itemDescription); switch (sectionID) { case CHANNEL_CONTROL_SECTION: // Not used (set inactive) videoPlayer.source = VideoSource.VideoClip; // Set video clip if (preinstalledVideos) { switch (itemID) { case NEXT_VIDEO: // Set video index currentClipIndex++; if (currentClipIndex >= numberOfVideos) { currentClipIndex = 0; } break; case PREV_VIDEO: // Set video index currentClipIndex--; if (currentClipIndex < 0) { currentClipIndex = numberOfVideos - 1; } break; } // Stop current video videoPlayer.Stop(); playButton.InitToggleButton(false); currentPlayingVideoIsCompleted = false; videoPlayer.clip = videoClips[currentClipIndex]; StartCoroutine(UpdateCenterScreenText(itemDescription)); } break; case PLAY_CONTROL_SECTION: switch (itemID) { case PLAY: if (playButton.State) { videoPlayer.Play(); } else { videoPlayer.Pause(); } break; case RESTART: // Not added yet videoPlayer.Stop(); videoPlayer.Play(); break; case EJECT: if (currentPlayingVHS != null) { StartCoroutine(EjectVideo(null)); } break; } break; case VOLUME_CONTROL_SECTION: // Not used (set inactive) switch (itemID) { case VOLUME_DOWN: break; case VOLUME_UP: break; } break; default: Debug.Log("No section found with name '" + sectionID + "'."); break; } }