public void branchOutbyNode(string relative_path, Vector3 location, double start_time) { string intendedPath = timelineController.getRoot() + relative_path; Debug.Log(intendedPath); if (!intendedPath.Equals(statusController.getPath())) { videoManager.removeVideo(); controller.removeAllHotspots(); statusController.branch_into(relative_path); Debug.Log(relative_path); string mainVideo_path = Path.Combine(statusController.getPath(), "MainVideo.mp4"); videoManager.loadVideo(mainVideo_path); controller.please_load(); } Camera.main.transform.LookAt(location); videoManager.goToPosinTime(start_time); }
//Redraw the timeline when hotspots are saved to json from the hashtable. public void Redraw() { window_Graph.ClearGraph(); window_Graph.MainBranch("main"); timelineController.draw(timelineController.getRoot(), 150, 100, 100, 1950); }