Skip to content
Nicholas Katzakis edited this page Aug 9, 2018 · 11 revisions

joutai logo

Usage:

  • Create a class that inherits from :State
  • Drag in GameObject
  • Drag needed objects in neededObjects List<>
  • Mark objects "Permanent" if you want Joutai to NOT disable them (i.e. leave them alone).
  • Call AdvanceState() to move to next state when done.

Explanation for the example States already in place:

  • countdown state screenshot

    CountdownState.cs

    • Shows a countdown timer. Requires assignment of a text object to render to.
    • TODO:
    • the state should search for the active camera, create a canvas as a billboard to that camera and render the timer there.
  • instruction state screenshot

    InstructionState.cs

    • Shows instructions that are navigated either with a mouse click or a wand etc.
    • TODO:
    • Inside Start(), the state should search for the active camera, create a canvas as a billboard to that camera and render the text there.
  • ViveWandState.cs

    • REQUIRES STEAM_VR!!! This state exposes a triggerPressed() method that is called every time the participant presses the vive trigger.
    • TODO:
    • Fix controller seeking script
Clone this wiki locally