public void goToBranch() { string hotspot_name = inputpanelcontrol.getName(); floor_count++; //Store status data before branch prev_video_frame = videoManager.getFrame(); prev_tramsform = controller.getTransformByID(inputpanelcontrol.getCurrentID()); videoManager.removeVideo(); controller.removeAllHotspots(); inputpanelcontrol.closeWindow(); //Branch and load data statusController.branch_out(hotspot_name); string current_path = statusController.getPath(); string mainVideo_path = Path.Combine(current_path, "MainVideo.mp4"); if (File.Exists(mainVideo_path)) { videoManager.loadVideo(mainVideo_path); } else { warningController.displayErrorMessage("Please add a Main Video."); } controller.please_load(); backButton.SetActive(true); }