Tutorial Room
The Tutorial Room
scene can be found in Assets/Scenes
. It is meant to teach the player how to operate the buttons on the controller, navigate the area, as well as use interactive objects such as the PhotoSpheres & 360 Videos, InfoPanels, and Geornal Objects.
The Tutorial Room has several unique scripts working their magic simultaneously:
TutorialManager
This singleton script manages the enabling and disabling of controller buttons corresponding to where in the tutorial the player is.
Other scripts such as the IndividualTutorialTooltipToggler
below will call public methods from TutorialManager
to enable or disable controller buttons and therefore their usability. This is useful for preventing the player from accidentally using a button not yet explained and causing confusion.
IndividualTutorialTooltipToggler
This script requires the GameObject to have a Collider
component that is set to be a Trigger
.
There is a public Buttons
enumerator, which shows up on the Unity inspector as a dropdown menu of controller button names. This public enumerator can be found in TooltipManager
. This decides what controller button will be enabled or disabled.
On entering the area set by the collider, this script will enable the appropriate tooltip and controller button. On exiting the area, the controller tooltip will be disabled.
SpotlightToggler
This script turns on all the spotlights in the public Light
array "spotlights".
Similarly to the IndividualTutorialTooltipToggler
, the spotlights are enabled upon entering the collider area. On exiting, they are not affected however.
Warning! Make sure the spotlight you add to the array has it's Light
component disabled to begin with!
TutorialNarration
This script will play the assigned public AudioClip
variable called "narration".
Similarly to the IndividualTutorialTooltipToggler
and SpotlightToggler
, the narration is played upon entering the collider area. The narration will only end if the player enters another collider area with a TutorialNarration
component or finishes the AudioClip
.