SceneController.cs - POINT-VR/POINT-VR-Chapter-1 GitHub Wiki

This script should be on the player prefab. It communicates the player's settings to the GameManager before switching scenes and then retrieves this information upon being instantiated in a scene. This script does little more than move data around. The struct in the GameManager should be augmented alongside this in the event that more user data needs to be preserved across scene loads.

Its fields are all of the components/GameObjects that contain user data, except in two cases:

  1. Pause, which is only used to unpause before loading the new scene.
  2. UI Manager, which doesn't actually know if the floor is enabled or not. The UI buttons (which are not fields) supply this information instead.