// Update is called once per frame // this state machine will eventually need to change // to host changing between videoplayer and slideshow void Update() { if (viewerController.isBuilt()) { isBuilt = viewerController.buildUpdate(); } else { return; } // Debug.Log("Running"); // switch (currentState) // { // case SlideViewerStates.Intro: // currentState = SlideViewerStates.Idle; // break; // case SlideViewerStates.Idle: // currentState = SlideViewerStates.Slides; // // viewerController.Update(); // break; // case SlideViewerStates.Slides: // Debug.Log("incrementing slides"); // viewerController.incrementSlide(); // viewerController.Update(); // System.Threading.Thread.Sleep(100); // ; // if (viewerController.slidesCompleted()) // { // viewerController.toggleActiveController(); // currentState = SlideViewerStates.Video; // Debug.Log("Moving to video"); // } // break; // case SlideViewerStates.Video: // // viewerController.play(); // // break; // } }